Thank you very much, it works now!

-----Message d'origine-----
De : Chris Hostetter [mailto:[EMAIL PROTECTED] 
Envoyé : November 13, 2006 3:30 PM
À : java-user@lucene.apache.org
Objet : RE: IndexReader.getTermFreqVectors() throws Read past EOF exception


: - Then I call Hits searchHits = multi.search(luceneQuery);
: - After that I loop on my hits, and use:
:
: ((IndexSearcher)multi.getSearchables()[multi.subSearcher(searchHits.id(k))]).
: getIndexReader().getTermFreqVectors(searchHits.id(k))

I don't know a lot about multi-searcher, but that doesn't look right ...
you are passing the docid from the multisearcher directly to a subsearcher
... i think you should be using multi.subDoc the same way you use
multi.subSearcher...


  ((IndexSearcher)multi.getSearchables()
   [multi.subSearcher(searchHits.id(k))]).getIndexReader().getTermFreqVectors
    (multi.subDoc(searchHits.id(k)));



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to