lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dragon Fly <dragon-fly...@hotmail.com>
Subject RE: Pagination ...
Date Wed, 26 Dec 2007 14:49:47 GMT

Any advice on this? Thanks.

> From: dragon-fly999@hotmail.com
> To: java-user@lucene.apache.org
> Subject: Pagination ...
> Date: Sat, 22 Dec 2007 10:19:30 -0500
> 
> 
> Hi,
> 
> What is the most efficient way to do pagination in Lucene? I have always done the following
because this "flavor" of the search call allows me to specify the top N hits (e.g. 1000) and
a Sort object:
> 
>     TopFieldDocs topFieldDocs = searcher.search(query, null, 1000, SORT_BY_DATE);
> 
> Is it the best way? Thank you.
> 
> _________________________________________________________________
> Don't get caught with egg on your face. Play Chicktionary!
> http://club.live.com/chicktionary.aspx?icid=chick_wlhmtextlink1_dec

_________________________________________________________________
Get the power of Windows + Web with the new Windows Live.
http://www.windowslive.com?ocid=TXT_TAGHM_Wave2_powerofwindows_122007
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message