lucenenet-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Rodenburg" <jeff.rodenb...@gmail.com>
Subject Re: Efficient Paging
Date Fri, 08 Sep 2006 17:50:59 GMT
Hi Rabin -

Re-executing the search is actually the most efficient manner.  A hits
object that is returned by a search is actually very light.  The display
aspect of iterating through the results is more efficient because you're
pulling information from an index who's reader is now cached.  The hits
object simply contains pointers to other document Ids.  In short, the
re-execution is already helping you in the background.

It's a common misconception, but paging is most efficient by executing the
search each time.

-- j

On 9/8/06, Rabin Karki <rabinkarki@gmail.com> wrote:
>
> I am trying to do the paging while displaying the search results. i read
> different forums and methods, they suggest that just do the normal
> searching
> and display pages using the hits object thus obtained. In this method same
> hit object will be generated every time the index is searched. i don't
> think
> that will be an efficient method if i get a lot of results in a single
> search.
>
> So, is there better method than that to do the paging?
> Thanks
>
> --
> Rabin
>
>

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