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

advanceExact does not work on sorted numeric dvs with Lucene54DocValuesProducer

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.2
    • 7.2.1, 7.3
    • None
    • None
    • New

    Description

      DocValues are iterators now so old doc values (produced with Lucene54DocValues) also implements advance and advanceExact. Though sorted numerics produced by Lucene54DocValues are not working as expected when advanceExact is used.
      In such case, the docValueCount is as expected but the values returned by the iterator for the document are invalid. This is due to a bug in the implementation of advanceExact in the producer that does not set the offset of the current doc when the function is used.

      Attachments

        1. LUCENE-8117.patch
          4 kB
          Jim Ferenczi

        Activity

          People

            Unassigned Unassigned
            jim.ferenczi Jim Ferenczi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: