[
https://issues.apache.org/jira/browse/LUCENE-10425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17502254#comment-17502254
]
Michael Sokolov commented on LUCENE-10425:
------------------------------------------
> Thinking through this a bit more, I imagine that this is the reason why you
> made this API optional.
Once you implement this API, if it is indeed useful, someone starts relying on
it. Then you can no longer just go ahead and make a new implementation that
doesn't support it (or makes it much slower), at least not without a fight:
it's harder to remove something than not to add it in the first place. I don't
think the optional idea is real.
We need to make a case for this on the merits - if it enables powerful
optimizations across a wide range of applications, then so be it, perhaps it's
worth the future constraints. I'm not sure though
> count aggregation optimization inside one segment in log scenario
> -----------------------------------------------------------------
>
> Key: LUCENE-10425
> URL: https://issues.apache.org/jira/browse/LUCENE-10425
> Project: Lucene - Core
> Issue Type: New Feature
> Components: core/search
> Reporter: jianping weng
> Priority: Major
> Time Spent: 4.5h
> Remaining Estimate: 0h
>
> In log scenario, we usually want to know the doc count of documents between
> every time intervals. One possible optimized method is to sort the docuemt in
> ascend order according to @timestamp field in one segment. then we can use
> this pr [https://github.com/apache/lucene/pull/687] to find out the min/max
> docId in on time interval.
> If there is no other filter query, the doc count of one time interval is (max
> docId- min docId +1)
> if there is only one another term filter query, we can use this pr
> [https://github.com/apache/lucene/pull/688
> |https://github.com/apache/lucene/pull/688]to get the diff value of index,
> when we call advance(minId) and advance(maxId), the diff value is also the
> doc count of one time interval
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]