lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Teruhiko Kurosaka <K...@basistech.com>
Subject RE: Lucene performance: is search time linear to the index size?
Date Fri, 19 Jun 2009 00:17:20 GMT
> From: Jay Booth [mailto:jbooth@wgen.net]  
> 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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message