lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohammad Norouzi" <mnr...@gmail.com>
Subject Re: Emulating Pages Search
Date Sun, 01 Apr 2007 11:34:29 GMT
It has no performance problem and works fine.
whenever you are going to access a document the searcher will load the
document from the index.

On 4/1/07, Mohsen Saboorian <mohsens@gmail.com> wrote:
>
>
> This is possible, but the problem here is performance. Why is it not
> possible
> to support pagination in a more efficient way? Suppose, a Searcher looks
> through Documents and find the matching ones. Theoretically, it can stop
> searching when the result hit number gets more than a threshold. Searcher
> may save it's state (reference to the last matched document) whithin the
> searcher instance, making it possible for incremental search.
>
> What is the restriction here in Lucene indices structure, which prevents
> us
> from having this kind of search?
>
>
> is_maximum wrote:
> >
> > Mosen,
> > In order to support pagination, I wrapped the Hits is a class just like
> > java.sql.ResultSet
> > You can create a wrapper class and put the Hits in that and implement
> some
> > methods like next() prev() to forward and backward through the
> docuements.
> >
> > Hope this help you.
> >
> > --
> > Regards,
> > Mohammad
> >
>
> --
> View this message in context:
> http://www.nabble.com/Emulating-Pages-Search-tf3500169.html#a9776722
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


-- 
Regards,
Mohammad

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