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

SpanNot sometimes forgets to call matches() on excl approximation

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.2, 6.0
    • None
    • None
    • New

    Description

      It happens in both impls, so I think the problem is in NearSpansPayloadOrdered. Maybe atFirstInCurrentDoc gets set without matchStart getting set?

      Can be triggered more generally in tests like this:

        @Override
        public int nextStartPosition() throws IOException {
          if (atFirstInCurrentDoc) {
            atFirstInCurrentDoc = false;
            assert matchStart >= 0; // add this assert
            return matchStart;
          }
      

      Attachments

        1. LUCENE-6418_test.patch
          1 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: