On Dec 7, 2009, at 1:56 AM, Earwin Burrfoot wrote:

> On Sun, Dec 6, 2009 at 02:01, Grant Ingersoll <gsing...@apache.org> wrote:
>> 
>> On Dec 5, 2009, at 10:47 PM, Earwin Burrfoot wrote:
>> 
>>> If someone needs all results, they know it beforehand. Why can't they
>>> write this collector themselves? It's trivial, just like you said.
>> 
>> I'm not following your comment.  Of course they can write it.  But that's 
>> true for all the implementations we provide.
>> 
>> However, the Collector stuff doesn't handle the post collection sort, so, it 
>> would require someone to hack some low level Lucene internals.  Also, I 
>> think it's interesting to think about the case of getting most of the 
>> results, but maybe not all.
>> 
> You mentioned sorting in a user-provided callback, that essentially
> leaves only filling up an array/list inside the Collector. Maybe I
> just misunderstood something.
> 

Sorry, I meant Lucene would provide a callback that Lucene would invoke after 
all collection is done and then the implementation would sort.  But, yeah, we 
could simply provide it back unsorted.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to