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

Rewrite exists field value query to leverage DocValuesFieldExistsQuery and NormsFieldExistsQuery

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

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

      Description

      A few of us were discussing at Buzzwords on how a common use case requirement is "match documents which have values for a field"

      To do this we need to query "-fq:brand:*" . This query can be slow and can be optimized

      We can take advantage of NormsFieldExistsQuery and DocValuesFieldExistsQuery to speed up this use-case and not have to resort to WildcardQuery 

      Today Solr's schema has doc-values enabled for fields that support it and for text fields norms are enabled by default so most users would already have the necessary indexed structures 

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              varun Varun Thacker

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment