lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wettin (JIRA)" <>
Subject [jira] Commented: (LUCENE-1939) IndexOutOfBoundsException at ShingleMatrixFilter's Iterator#hasNext method
Date Fri, 02 Oct 2009 20:42:23 GMT


Karl Wettin commented on LUCENE-1939:

bq. I also think so, because the above stack dump seems to be from 2.4.1 (in 2.9 there should
be incrementToken() instead of next() for all filters listed there).

Ah, I missunderstood your comment. The thing is that ShingleMatrixFilter was left using the
old API because of its complexity. I told whoever it was that gave it a shot that I'd look
in to upgrading it, just haven't had time to do so yet. There will be a new generified and
updated version of the filter any year now. At least before 3.0.

> IndexOutOfBoundsException at ShingleMatrixFilter's Iterator#hasNext method
> --------------------------------------------------------------------------
>                 Key: LUCENE-1939
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/analyzers
>    Affects Versions: 2.9
>            Reporter: Patrick Jungermann
>            Assignee: Karl Wettin
>         Attachments: ShingleMatrixFilter_IndexOutOfBoundsException.patch
> I tried to use the ShingleMatrixFilter within Solr. To test the functionality etc., I
first used the built-in field analysis view.The filter was configured to be used only at query
time analysis with "_" as spacer character and a min. and max. shingle size of 2. The generation
of the shingles for query strings with this filter seems to work at this view, but by turn
on the highlighting of indexed terms that will match the query terms, the exception was thrown.
Also, each time I tried to query the index the exception was immediately thrown.
> Stacktrace:
> {code}
> java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
> 	at java.util.ArrayList.RangeCheck(Unknown Source)
> 	at java.util.ArrayList.get(Unknown Source)
> 	at org.apache.lucene.analysis.shingle.ShingleMatrixFilter$Matrix$1.hasNext(
> 	at
> 	at
> 	at
> 	...
> {code}
> Within the hasNext method, there is the {{s-1}}-th Column from the ArrayList {{columns}}
requested, but there isn't this entry within columns.
> I created a patch that checks, if {{columns}} contains enough entries.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message