lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Erera (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-2806) ArrayIndexOutOfBoundsException thrown from TermScorer.score while doing a regular index search.
Date Tue, 07 Dec 2010 10:00:09 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-2806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12968654#action_12968654
] 

Shai Erera commented on LUCENE-2806:
------------------------------------

Ok -- I looked at 3x source code, but I see you marked the issue as 3.0.3 and that TermScorer's
lines are different between 3x and 3.0.3. The offending line looks like:

{code}
    return norms == null ? raw : raw * SIM_NORM_DECODER[norms[doc] & 0xFF]; // normalize
for field
{code}

And it can be thrown by either invalid access to the 'norms' array, or the SIM_NORM_DECODER
array. Are you using a custom Similarity maybe? I think it's less likely that the invalid
access is caused from the 'norms' array, as it is allocated in the size of the index (one
norm per document).

Are you able to rebuild the index? If so, I'd suggest to rebuild it and add all content as
ANALYZED_NO_NORMS to disable norms. If the AIOOBE still happens, then we know it's from the
SIM_NORM_DECODER, otherwise it's from the norms[] array.

Also, does it happen in other queries too? Maybe to remove some noise, remove the *field:word**
part and only keep the type:document part? Trying to minimize the query down to few select
terms to ease on the debugging.

Can you perhaps post the index here?

> ArrayIndexOutOfBoundsException thrown from TermScorer.score while doing a regular index
search.
> -----------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-2806
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2806
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 3.0.3
>         Environment: Ubuntu linux
>            Reporter: Soujanya
>
> java.lang.ArrayIndexOutOfBoundsException: 51064
> 	org.apache.lucene.search.TermScorer.score(TermScorer.java:130)
> 	org.apache.lucene.search.TopScoreDocCollector$InOrderTopScoreDocCollector.collect(TopScoreDocCollector.java:47)
> 	org.apache.lucene.search.TermScorer.score(TermScorer.java:78)
> 	org.apache.lucene.search.TermScorer.score(TermScorer.java:70)
> 	org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:212)
> 	org.apache.lucene.search.Searcher.search(Searcher.java:67)

-- 
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message