Uploaded image for project: 'Terrier Core'
  1. Terrier Core
  2. TR-170

ArrayIndexOutOfBoundsException in PostingListManager, add unit test for PostingListManager

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5
    • Fix Version/s: 3.6
    • Component/s: .matching
    • Labels:
      None

      Description

      I encountered an exception using the keywords below:
      {yyy zzz}

      at org.terrier.matching.PostingListManager.mergeStatistics(PostingListManager.java:230)
      at org.terrier.matching.PostingListManager.addSingleTermAlternatives(PostingListManager.java:282)
      at org.terrier.matching.PostingListManager.<init>(PostingListManager.java:162)
      at org.terrier.matching.taat.Full.match(Full.java:73)
      at org.terrier.querying.Manager.runMatching(Manager.java:676)

      The query: zzz yyy
      returns 0 results. So I think it has something to do with empty-resulting keywords. Also the same error is encountered when using the query:

      {work zzz} {gospel yyy}

      Even if there are results for the query:
      work gospel

      However, the exception does not happen for the query below:
      {work zzz} {message yyy}

      where work and message appears in some documents.

      I can't make a clear conclusion with this.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                craigm Craig Macdonald
                Reporter:
                kenston Kenston Choi
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: