Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
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
- is related to
-
SOLR-11437 double open ended range queries should be optimized to DocValuesFieldExistsQuery or NormsFieldExistsQuery
-
- Resolved
-
-
LUCENE-7982 NormsFieldExistsQuery to match documents where field exists based on field norms
-
- Closed
-
-
LUCENE-7899 Rename FieldValueQuery to DocValuesFieldExistsQuery
-
- Closed
-