Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-10020

DocComparator should not skip docs with the same docID on multiple sorts with search after

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 8.10
    • None
    • None
    • New

    Description

      Because of the optimization introduced in LUCENE-9449, when searching with sort on [_doc, other fields] with search after, DocComparator can efficiently skip all docs before and including the provided [search after docID].
      This is a desirable behaviour in a single index search. But in a distributed search, where multiple indices have docs with the same docID, and when searching on [_doc, other fields], the sort optimization should not skip documents with the same docIDs.

      Relates to LUCENE-9449

      Attachments

        Activity

          People

            Unassigned Unassigned
            mayya Mayya Sharipova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 40m
                1h 40m