Hi,
The existing code retrieved a TermPositionVector with
IndexReader.getTermFreqVector(docId, field). It then extracted the terms for
the query and stores them in two different array.
One containing single word terms, the other containing the phrases.
For single word term it loops on the array
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.s
24
[Exception thrown here]
LUCENE--> start=732 + 0
LUCENE--> end=732 + 1024
LUCENE--> length()=436
LUCENE--> bufferLength=436 - 732
[Exception thrown here]
I don't know if this might help, but each time an exception is thrown the
length of the FileEntry is always 436
I have also n
ee if you get term vectors that way? That is, simplify the process
by taking the MultiSearcher out of the equation to see if you get
valid results.
On Nov 12, 2006, at 3:50 PM, Jean-Francois Beaulac wrote:
> Hi,
>
>
>
> I make a search on several indexes using a MultiSearche
)
...
-Message d'origine-
De : Jean-Francois Beaulac [mailto:[EMAIL PROTECTED]
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
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++) {
((IndexSearc