> From: Jay Booth [mailto:[email protected]]
> Are you fetching all of the results for your search?
No, I'm not doing anything on the search results.
This is essentially what I do:
searcher = new IndexSearcher(IndexReader.open(indexFileDir));
query = new TermQuery(new Term(fieldName, queryTerm));
for (int i=0; i<1000; ++i){
TopDocs td = searcher.search(query, null, 50, Sort.RELEVANCE);
// td is not used and the results are thrown away.
}
-kuro
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]