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

ValueSourceScorer (used in VS range queries) ought to honor FV.exists

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • New

    Description

      (discussion split off from LUCENE-6720)
      ValueSourceScorer is an abstract scorer based on a ValueSource; notably it's returned by FunctionValues.getRangeScorer. None of the implementations consider FunctionValues.exist(doc). It really ought to. DocValuesRangeQuery does.

      Perhaps this should be based on the ValueFillter/MutableValue API. It optimizes existence & value fetching in one fetch when possible. Furthermore, it might be possible to have a common range query check without doing it per-type?

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: