Yes.You can use the method:

publicTopFieldDocs  
<http://lucene.apache.org/core/3_6_0/api/core/org/apache/lucene/search/TopFieldDocs.html>
  search(Query  
<http://lucene.apache.org/core/3_6_0/api/core/org/apache/lucene/search/Query.html>  
query,
                  Filter  
<http://lucene.apache.org/core/3_6_0/api/core/org/apache/lucene/search/Filter.html>
  filter,
                  int n,
                  Sort  
<http://lucene.apache.org/core/3_6_0/api/core/org/apache/lucene/search/Sort.html>
  sort)
                    throwsIOException  
<http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true>

see the api at 
http://lucene.apache.org/core/3_6_0/api/core/org/apache/lucene/search/IndexSearcher.html




On 2012-5-12 18:12, Yogesh patel wrote:
Hi

I have index 100000 documents in Lucene. I have one query that gets all
documents and it takes more time..
So i need to implement paging in lucene query so i can search result fast
page wise.

Is it possible to do paging or smart rendering with Lucene.

Awaiting for reply.


Reply via email to