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

[PATCH] BooleanScorer2 ArrayIndexOutOfBoundsException + alternative NearSpans

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • core/search
    • None
    • Operating System: other
      Platform: Other

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: