This thread seems to be veering well away from your original straightforward question on how to convert your straighforward code. If you want or need these advanced solutions, fine, but if your existing code was fast enough the modified versions suggested earlier are probably fast enough too.
-- Ian. On Thu, Jun 11, 2009 at 1:38 AM, Paul J. Lucas<p...@lucasmail.org> wrote: > On Jun 10, 2009, at 5:02 PM, Yonik Seeley wrote: > >> On Wed, Jun 10, 2009 at 7:58 PM, Daniel Noll <dan...@nuix.com> wrote: >>> >>> It's a shame we don't have an inverted kind of HitCollector where we >>> can say "give me the next hit", so that we can get the best of both >>> worlds (like what StAX gives us in the XML world.) >> >> You can get a scorer and call next() yourself. > > Example code, please? > > - Paul --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org