You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "gsmiller (via GitHub)" <gi...@apache.org> on 2025/10/24 23:34:14 UTC
Re: [I] DrillSideways and early termination [lucene]
gsmiller commented on issue #15220:
URL: https://github.com/apache/lucene/issues/15220#issuecomment-3445243471
Thanks @tflobbe for raising this. It's a bit of an interesting challenge to figure out the right thing to do with multi-collection. The current approach is that each wrapped collector can independently terminate, but those terminations don't impact the ability for other sibling collectors to continue. So in this case, if your main collector is terminating early, facet collection will continue (as you point out).
Have you looked at the [DrillSideways#search](https://github.com/apache/lucene/blob/3043382bfd734cb27d416a3ad4587f43945f54b9/lucene/facet/src/java/org/apache/lucene/facet/DrillSideways.java#L434) method that was added ~1 year ago that lets you provide your own drill-down and drill-sideways facet collector implementations? I think this should give you the flexibility to do what you're looking for if you create a version of `MultiCollectorManager` that terminates all collection as soon as one collector terminates?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org