lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Search Help
Date Thu, 10 Nov 2005 13:24:30 GMT
On 10 Nov 2005, at 08:01, Daniel.Clark@sybase.com wrote:
> That's what I'm doing now, but I was thinking that if I limit the  
> number of
> results I get back, I can save query time.  Maybe I'm wrong?

Out of curiosity - what kind of query are you issuing and what kind  
of response times are you seeing?

I don't think you'd see much of a change in query time by having  
Lucene modified to only return the top hit, but I'm only speculating.

     Erik

>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Daniel Clark, Senior Consultant
> Sybase Federal Professional Services
> 6550 Rock Spring Drive, Suite 800
> Bethesda, MD  20817
> Office - (301) 896-1103
> Office Fax - (301) 896-1604
> Mobile - (703) 403-0340
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
>              Erik Hatcher
>              <erik@ehatchersol
>               
> utions.com>                                                To
>                                        java-user@lucene.apache.org
>              11/09/2005  
> 08:44                                           cc
>              PM
>                                                                     
> Subject
>                                        Re: Search Help
>              Please respond to
>              java-user@lucene.
>                 apache.org
>
>
>
>
>
>
>
>
> On 9 Nov 2005, at 19:54, Daniel.Clark@sybase.com wrote:
>
>> Is there a way to limit the number of hits I want returned?
>> Sometimes I
>> just want one document.
>>
>
> Is there an issue with just accessing hits.doc(0) in this case?
>
>      Erik
>
>
>
> ---------------------------------------------------------------------
> 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