lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: AW: limit return results
Date Wed, 07 Sep 2005 13:56:19 GMT
Look at the code that comes with Lucene in Action.  Here are
references, page numbers, etc.:

  http://www.lucenebook.com/search?query=hitcollector

Otis

--- Kunemann Frank <frank.kunemann@innosystec.de> wrote:

> Hi,
> 
> HitCollector sounds very interesting - do you have an example for how
> to use it?
> 
> Frank
> 
> -----Urspr√ľngliche Nachricht-----
> Von: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com] 
> Gesendet: Mittwoch, 7. September 2005 05:28
> An: java-user@lucene.apache.org
> Cc: Murray Altheim
> Betreff: Re: limit return results
> 
> Hello (redirecting to java-user@),
> 
> If you want to have more control over scoring and dealing with hits,
> use HitCollector.  Then you can break out when you accumulate enough
> results.  Note that scores in HitCollector are not normalized as are
> the one coming from IndexSearcher's search(...) methods.
> 
> Otis
> 
> --- Murray Altheim <m.altheim@open.ac.uk> wrote:
> 
> > Erik Hatcher wrote:
> > > Just access the first 100 Hits - simple as that.
> > > 
> > >      Erik
> > 
> > Erik,
> > 
> > This question has come up before. For high traffic sites that
> > can't afford to have the search engine accumulating thousands
> > of hits, only to deliver 100, or perhaps just a few, the
> > current approach *seems* like quite a lot of extra processing.
> > Is there some way to have the engine simply stop generating
> > the hit list after it reaches the specified threshold?
> > 
> > Thanks,
> > 
> > Murray
> > 
> > > On Sep 6, 2005, at 7:07 PM, haipeng du wrote:
> > > 
> > > 
> > >>How could I limit returned results. There may huge number of  
> > >>documents that
> > >>match my query, but I just want to get the first 100, for
> example.
> > >>Thanks a lot.
> > >>
> > >>-- 
> > >>Haipeng Du
> > >>Software Engineer
> > >>Comphealth,
> > >>Salt Lake City
> > 
> >
>
......................................................................
> > Murray Altheim                         
> > http://www.altheim.com/murray/
> > Strategic and Services Development
> > The Open University Library
> > The Open University, Milton Keynes, Bucks, MK7 6AA, UK             
> 
> > .
> > 
> >         believe that everything is for
> >         you until you discover
> >         that you are for it
> >                                "The Robin and the Worm" by Don
> > Marquis.
> >                               
> > http://www.altheim.com/lit/robnworm.html
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-dev-help@lucene.apache.org
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message