[TR-170] ArrayIndexOutOfBoundsException in PostingListManager, add unit test for PostingListManager Created: 18/Jun/11  Updated: 16/Apr/12  Resolved: 16/Apr/12

Status: Resolved
Project: Terrier Core
Component/s: .matching
Affects Version/s: 3.5
Fix Version/s: 3.6

Type: Bug Priority: Minor
Reporter: Kenston Choi Assignee: Craig Macdonald
Resolution: Fixed  
Labels: None

Issue Links:
is duplicated by TR-255 PostingListManager has no unit test Resolved
relates to TR-255 PostingListManager has no unit test Resolved

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.

Comment by Kenston Choi [ 18/Jun/11 ]

See: http://terrier.org/forum//read.php?3,1894
For Craig's comment

Comment by Craig Macdonald [ 21/Jun/11 ]

Not going to close this until there is a junit test for PostingListManager.

Comment by Craig Macdonald [ 16/Apr/12 ]

Amend title

Comment by Craig Macdonald [ 16/Apr/12 ]

Fixed for 3.6

Generated at Wed Dec 19 07:43:02 GMT 2018 using JIRA 7.1.1#71004-sha1:d6b2c0d9b7051e9fb5e4eb8ce177ca56d91d7bd8.