On Friday 13 February 2004 15:02, Erik Hatcher wrote:Use a HitCollector and grab the first one that comes in, then bail out.
That should do the trick for getting the first hit only.
According to the API docs I ought to use HitCollector only if I need all
hits :-) And there's certainly a reason for it - I don't think that this will
speed up the search ;)
Did you measure it?
Are your searches slow?
Erik
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
