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

advanceExact does not work on sorted numeric dvs with Lucene54DocValuesProducer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.2
    • Fix Version/s: 7.2.1, 7.3
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: