ofcourse I do this. This is my sample cod to get terms:
PrefixQuery pq = new PrefixQuery(new Term("field","hell*"));
rewritenQuery = indexSearcher.rewrite(pq);
QueryTermExtractor qte = new QueryTermExtractor();
WeightedTerm[] wt = qte.getTerms(rewritenQuery );
and it returns nothing to me in wt!
Ah because that will easily toss an out of memory exception. Besides I
already tried it. I don't want a huge array holding all of those documents.
I really just want to be called back when a new document is found by the
searcher, and I can load the Document, find my object, and drop that to a
fi
On 9/16/2011 11:30 AM, Charlie Hubbard wrote:
I'm trying to reimplement a feature I had under 2.x in 3.x. I have a
feature where a zip file for all of the documents returned by a search can
be exported. Now with the newer APIs you have to put an upper limit on the
search so it won't return more
I'm trying to reimplement a feature I had under 2.x in 3.x. I have a
feature where a zip file for all of the documents returned by a search can
be exported. Now with the newer APIs you have to put an upper limit on the
search so it won't return more than X documents. I'd like to extract all of
t