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

NearSpans skipTo bug

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      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. TestNearSpans.java
          6 kB
          Hoss Man
        2. SpanScorer.explain.testcase.patch
          0.6 kB
          Hoss Man
        3. NearSpansUnordered.java
          7 kB
          Paul Elschot
        4. NearSpansOrdered.java
          9 kB
          Paul Elschot
        5. common-build.assertions.patch
          0.6 kB
          Paul Elschot
        6. SpanNearQuery20060622.patch
          0.6 kB
          Paul Elschot
        7. NearSpans20060903.patch
          35 kB
          Paul Elschot
        8. LUCENE-569.ubber.patch
          35 kB
          Hoss Man

          Issue Links

            Activity

              People

              • Assignee:
                hossman Hoss Man
                Reporter:
                hossman Hoss Man
              • Votes:
                1 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: