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

[PATCH] BooleanScorer2 ArrayIndexOutOfBoundsException + alternative NearSpans

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: core/search
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      35823

      Description

      From Erik's post at java-dev:

      >      [java] Caused by: java.lang.ArrayIndexOutOfBoundsException: 4
      >      [java]     at org.apache.lucene.search.BooleanScorer2
      > $Coordinator.coordFactor(BooleanScorer2.java:54)
      >      [java]     at org.apache.lucene.search.BooleanScorer2.score
      > (BooleanScorer2.java:292)
      ...

      and my answer:

      Probably nrMatchers is increased too often in score() by calling score()
      more than once.

        Attachments

        1. SpanScorer.java
          3 kB
          Paul Elschot
        2. TestSpansAdvanced.java
          6 kB
          Paul Elschot
        3. TestSpansAdvanced2.java
          4 kB
          Paul Elschot
        4. DisjunctionSumScorerPatch5.txt
          0.4 kB
          Paul Elschot
        5. ASF.LICENSE.NOT.GRANTED--NearSpansOrderedBugHuntPatch1.txt
          1 kB
          Paul Elschot
        6. ASF.LICENSE.NOT.GRANTED--SpanScorerTestPatch1.txt
          0.9 kB
          Paul Elschot
        7. ASF.LICENSE.NOT.GRANTED--NearSpansUnordered.java
          7 kB
          Paul Elschot
        8. ASF.LICENSE.NOT.GRANTED--SpanNearQueryPatch1.txt
          0.6 kB
          Paul Elschot
        9. ASF.LICENSE.NOT.GRANTED--NearSpansOrdered.java
          7 kB
          Paul Elschot
        10. ASF.LICENSE.NOT.GRANTED--DisjunctionSumScorerPatch4.txt
          0.6 kB
          Paul Elschot
        11. ASF.LICENSE.NOT.GRANTED--DisjunctionSumScorerPatch3.txt
          1 kB
          Paul Elschot
        12. ASF.LICENSE.NOT.GRANTED--DisjunctionSumScorerTestPatch1.txt
          0.9 kB
          Paul Elschot

          Activity

            People

            • Assignee:
              yseeley@gmail.com Yonik Seeley
              Reporter:
              paul.elschot@xs4all.nl Paul Elschot
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: