Tomas Eduardo Fernandez Lobbe created SOLR-15391:
----------------------------------------------------
Summary: Enable "canUsePoints" for PointFields in Solr
Key: SOLR-15391
URL: https://issues.apache.org/jira/browse/SOLR-15391
Project: Solr
Issue Type: Improvement
Security Level: Public (Default Security Level. Issues are Public)
Affects Versions: 8.9
Reporter: Tomas Eduardo Fernandez Lobbe
When using "minExactCount" in queries sorted by a numeric field, Lucene can
skip over non-competitive docs, similarly to how it can in score based sorts,
but using point fields data (see LUCENE-9280). In 8.x (see LUCENE-9384) the
requirements for this to happen is that:
1. DocValues field and Point field must exist for the same name and with the
same data
2. SortField "canUsePoints" must be set to true.
#1 is guaranteed in Solr when using Point fields with indexed=true and
docValues=true
#2 means simply calling \{{setCanUsePoints}} on the \{{SortField}}s created for
the numeric fields
This is an 8.x thing only (for 9, this optimization should be already enabled)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]