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

Split logic from TermContext.register

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • New

    Description

      TermContext.register currently does two different things: it stores a reference to an existing TermState in order to be able to seek back to the term efficiently and it accumulates statistics for scoring.

      However sometimes you would like to provide fake statistics in order to eg. blend frequencies (LUCENE-329) so we could decouple these two operations in order to make it easier?

      Attachments

        1. LUCENE-6476.patch
          2 kB
          Adrien Grand

        Issue Links

          Activity

            People

              jpountz Adrien Grand
              jpountz Adrien Grand
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: