lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: ArrayIndexOutOfBounds exception using FieldCache
Date Thu, 28 Oct 2010 15:44:06 GMT
Nice find Yonik!

Mike

On Thu, Oct 28, 2010 at 10:16 AM, Yonik Seeley
<yonik@lucidimagination.com> wrote:
> On Thu, Oct 28, 2010 at 6:15 AM,  <karl.wright@nokia.com> wrote:
>> Synched to trunk, blew away old indexes, reindexed, same behavior.  So I think we've
got a problem, Houston. ;-)
>
> Hey Karl, can you try the following patch on trunk:
>
> Index: lucene/src/java/org/apache/lucene/search/cache/DocTermsCreator.java
> ===================================================================
> --- lucene/src/java/org/apache/lucene/search/cache/DocTermsCreator.java
> (revision 1027667)
> +++ lucene/src/java/org/apache/lucene/search/cache/DocTermsCreator.java
> (working copy)
> @@ -164,7 +164,7 @@
>
>     @Override
>     public BytesRef getTerm(int docID, BytesRef ret) {
> -      final int pointer = (int) docToOffset.get(docID);
> +      final long pointer = docToOffset.get(docID);
>       return bytes.fillUsingLengthPrefix(ret, pointer);
>     }
>   }
>
>
>
>
> -Yonik
> http://www.lucidimagination.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message