lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Francois Beaulac <jean-francois.beau...@beetext.com>
Subject RE: IndexReader.getTermFreqVectors() throws Read past EOF exception
Date Sun, 12 Nov 2006 21:18:38 GMT
Forgot to post the stacktrace

java.io.IOException: read past EOF
	at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:60)
	at org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:33)
	at org.apache.lucene.store.IndexInput.readInt(IndexInput.java:46)
	at org.apache.lucene.store.IndexInput.readLong(IndexInput.java:69)
	at org.apache.lucene.index.TermVectorsReader.get(TermVectorsReader.java:151)
	at org.apache.lucene.index.SegmentReader.getTermFreqVectors(SegmentReader.java:508)
	...


-----Message d'origine-----
De : Jean-Francois Beaulac [mailto:jean-francois.beaulac@beetext.com] 
Envoyé : November 12, 2006 3:50 PM
À : java-user@lucene.apache.org
Objet : IndexReader.getTermFreqVectors() throws Read past EOF exception

Hi,

 

I make a search on several indexes using a MultiSearcher and I can only
retrieve the TermFreqVectors from the IndexSearcher in the Searcher at
position 0 in my searchable array.

 

For example ():

hits = multi.search(luceneQuery);

for (int k = 0; k < hits.length(); k++) {

 
((IndexSearcher)multi.getSearchables()[multi.subSearcher(hits.id(k))]).getIn
dexReader().getTermFreqVectors(hits.id(k));

}

 

Will work correctly if multi.subSearcher() returns 0, but will fail if > 0.

 

I'm really wondering why I got this exception since my search results are
good.

 

 

Thank you

 



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


Mime
View raw message