lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From neeraj shah <neerajsha...@gmail.com>
Subject how to reterieve all results from lucene searcher.search() method
Date Wed, 19 Jun 2013 07:11:19 GMT
hello,

Is there any way to get all the search result.
In lucene we get top documents by giving the limit like top 100,1000... etc.
but if i want to get all results.

How can I achieve that??

 Query qu  = new QueryParser(Version.LUCENE_36,"field",
analyzer).parse(query);

 TopDocs hits = searcher.search(qu,1000);

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message