On Mon, Jun 22, 2009 at 3:25 AM, Shai Erera<ser...@gmail.com> wrote: > Or ... we can do nothing, and say that one can write his own Collector, and > use Sun's PQ (or any other), if one has a case like "I need 10K results, but > I don't know how many are there, and specifically I want to optimize for the > case of 1 result".
+1 I think Lucene's current PQ is optimized for the [very] common case, and if someone would like to eg swap to Sun's PQ impl, the custom Collector API is the best route. (And, I'd love to hear back on how the performance compares! If Sun has a faster PQ than Lucene, we should fix that ;) ). Though, are Lucene's core collectors reusable? If you did really want say 100K results out of each search (very unusual), it'd be nice to not have to throw away the Collector/PQ each time. Mike --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org