mayya-sharipova opened a new pull request #1610:
URL: https://github.com/apache/lucene-solr/pull/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#setCanSkipNonCompetitiveDocs must be set
   3) totalHitsThreshold should not be set to max value.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to