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

Pass a context struct to Weight#scorer instead of naked booleans

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0-ALPHA
    • 4.0-ALPHA
    • core/search
    • None
    • New, Patch Available

    Description

      Weight#scorer(AtomicReaderContext, boolean, boolean) is hard to extend if another boolean like "needsScoring" or similar flags / information need to be passed to Scorers. An immutable struct would make such an extension trivial / way easier.

      Attachments

        1. LUCENE-2865.patch
          40 kB
          Simon Willnauer
        2. LUCENE-2865.patch
          40 kB
          Simon Willnauer

        Activity

          People

            simonw Simon Willnauer
            simonw Simon Willnauer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: