Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-11437

double open ended range queries should be optimized to DocValuesFieldExistsQuery or NormsFieldExistsQuery

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      DocValuesFieldExistsQuery & NormsFieldExistsQuery are efficient ways to determine if a doc has a value in a given field (assuming the field has docValues or norms respectively)

      Since Solr's schema knows if/when these properties are true for a given field, we should be able to optimize some of the field:[* TO *] usecases to use these queries under the covers – notably in FieldType.getRangeQuery and subclasses that override it, but there may be other cases where they could come in handy as well

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                hossman Chris M. Hostetter
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: