On 10 Nov 2005, at 08:01, [EMAIL PROTECTED] 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
             <[EMAIL PROTECTED]
utions.com> To
                                       java-user@lucene.apache.org
11/09/2005 08:44 cc
             PM
Subject
                                       Re: Search Help
             Please respond to
             [EMAIL PROTECTED]
                apache.org








On 9 Nov 2005, at 19:54, [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to