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

NearSpans skipTo bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • core/search
    • None
    • Patch Available

    Description

      NearSpans appears to have a bug in skipTo that causes it to skip over some matching documents completely. I discovered this bug while investigating problems with SpanWeight.explain, but as far as I can tell the Bug is not specific to Explanations ... it seems like it could potentially result in incorrect matching in some situations where a SpanNearQuery is nested in another query such thatskipTo will be used ... I tried to create a high level test case to exploit the bug when searching, but i could not. TestCase exploiting the class using NearSpan and SpanScorer will follow...

      Attachments

        1. LUCENE-569.ubber.patch
          35 kB
          Chris M. Hostetter
        2. NearSpans20060903.patch
          35 kB
          Paul Elschot
        3. SpanNearQuery20060622.patch
          0.6 kB
          Paul Elschot
        4. NearSpansOrdered.java
          9 kB
          Paul Elschot
        5. common-build.assertions.patch
          0.6 kB
          Paul Elschot
        6. NearSpansUnordered.java
          7 kB
          Paul Elschot
        7. SpanScorer.explain.testcase.patch
          0.6 kB
          Chris M. Hostetter
        8. TestNearSpans.java
          6 kB
          Chris M. Hostetter

        Issue Links

          Activity

            People

              hossman Chris M. Hostetter
              hossman Chris M. Hostetter
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: