Terrier Users :  Terrier Forum terrier.org
General discussion about using/developing applications using Terrier 
ArrayIndexOutOfBoundsException in PostingListManager
Posted by: kenston ()
Date: June 17, 2011 05:27PM

Hello,

I'm using Terrier 3.5

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.



Edited 1 time(s). Last edit at 06/17/2011 05:31PM by kenston.

Options: ReplyQuote
Re: ArrayIndexOutOfBoundsException in PostingListManager
Posted by: craigm ()
Date: June 17, 2011 07:29PM

Yes, that looks like a minor bug. Can you make an issue on the issue tracker for that?


it looks like
if (_le.size() == 0) return;
at line 280 would be enough to fix the problem.

C

Options: ReplyQuote
Re: ArrayIndexOutOfBoundsException in PostingListManager
Posted by: kenston ()
Date: June 18, 2011 05:01AM

Hi Craig,

Thanks for the response. Issue in tracker has been created in [terrier.org].

We may close this topic already.



Edited 1 time(s). Last edit at 06/18/2011 05:02AM by kenston.

Options: ReplyQuote
Re: ArrayIndexOutOfBoundsException in PostingListManager
Posted by: kenston ()
Date: June 18, 2011 09:40AM

I confirm your solution as well.

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.