On 6/11/07, Chris Hostetter <[EMAIL PROTECTED]> wrote:

: It seems that the only way to do it would be to collapse the entire
: result set first, which entails loading the stored fields of the
: whole docset.
:
: That doesn't seem particularly feasible to do exactly.

I haven't really been following this conversation that closely, but
assuming what you guys are talking about is desirable, it seems like one
way to accomplish it might be to make it operate on the *indexed* values
for a field

Yes, the current JIRA patch uses the FieldCache.

... wouldn't iterating over each doc, and using the
FieldCache+TermDocs make it very efficient to find all the docs that have
the same indexed value as the current one?

The most efficient way will heavily depend on the nature of the
collapse field (few terms or many).  I can't currently think of a way
to do it efficiently for both.

-Yonik

Reply via email to