RE: ConstantScoreQuery and MatchAllDocsQuery

2007-02-27 Thread Jean-Francois Beaulac
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

RE: IndexReader.getTermFreqVectors() throws Read past EOF exception

2006-11-13 Thread Jean-Francois Beaulac
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

RE: IndexReader.getTermFreqVectors() throws Read past EOF exception

2006-11-13 Thread Jean-Francois Beaulac
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

RE: IndexReader.getTermFreqVectors() throws Read past EOF exception

2006-11-13 Thread Jean-Francois Beaulac
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

RE: IndexReader.getTermFreqVectors() throws Read past EOF exception

2006-11-12 Thread Jean-Francois Beaulac
) ... -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

IndexReader.getTermFreqVectors() throws Read past EOF exception

2006-11-12 Thread Jean-Francois Beaulac
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