[
https://issues.apache.org/jira/browse/LUCENE-9280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17169056#comment-17169056
]
ASF subversion and git services commented on LUCENE-9280:
---------------------------------------------------------
Commit 7b12849282898780b9a94546d23e325f5b8be6bb in lucene-solr's branch
refs/heads/branch_8x from Mayya Sharipova
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=7b12849 ]
LUCENE-9384: Backport for field sort optimization (#1610)
Backport for: LUCENE-9280: Collectors to skip noncompetitive documents (#1351)
Similar how scorers can update their iterators to skip non-competitive
documents, collectors and comparators should also provide and update
iterators that allow them to skip non-competive documents.
To enable sort optimization for numeric sort fields,
the following needs to be done:
1) the field should be indexed with both doc_values and points, that
must have the same field name and same data
2) SortField#setCanUsePoints must be set
3) totalHitsThreshold should not be set to max value.
> Add ability to skip non-competitive documents on field sort
> ------------------------------------------------------------
>
> Key: LUCENE-9280
> URL: https://issues.apache.org/jira/browse/LUCENE-9280
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Mayya Sharipova
> Priority: Minor
> Fix For: master (9.0)
>
> Time Spent: 18h 20m
> Remaining Estimate: 0h
>
> Today collectors, once they collect enough docs, can instruct scorers to
> update their iterators to skip non-competitive documents. This is applicable
> only for a case when we need top docs by _score.
> It would be nice to also have an ability to skip non-competitive docs when we
> need top docs sorted by other fields different from _score.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]