Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7834

BlockTree's terms index should be loaded into memory lazily

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • core/codecs
    • None
    • New, Patch Available

    Description

      I propose that BlockTree delay loading the FST prefix terms index into memory until terms(String) is first called. This seems like how it should work since if someone wants to eager load then they can use IndexReaderWarmer. By making the FST lazy load, we can be more NRT friendly (if some fields are rarely used), and also save memory (if some fields are rarely used).

      Attachments

        Issue Links

          Activity

            People

              dsmiley David Smiley
              dsmiley David Smiley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: