lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <karl.wri...@nokia.com>
Subject RE: ArrayIndexOutOfBounds exception using FieldCache
Date Thu, 28 Oct 2010 14:33:30 GMT
Yep, that fixed it. ;-)
Everything seems happy now.
Karl

-----Original Message-----
From: yseeley@gmail.com [mailto:yseeley@gmail.com] On Behalf Of ext Yonik Seeley
Sent: Thursday, October 28, 2010 10:17 AM
To: dev@lucene.apache.org
Subject: Re: ArrayIndexOutOfBounds exception using FieldCache

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