romseygeek commented on issue #15770: URL: https://github.com/apache/lucene/issues/15770#issuecomment-4212419321
Hi @sgup432, thanks for opening the discussion. This sort of this should really be properly handled by the two-phase iteration architecture, and I think the root of the problem is that SortedNumericDocValuesQuery is using DocValuesRangeIterator, which doesn't have a very efficient two-phase implementation. Rather than adding special casing to BooleanQuery I think it would be worth exploring changing SortedNumericDocValuesQuery to use a SkipBlockRangeIterator as its two-phase approximation. I already did this for sorting optimizations and got good results, and I opened #15703 as a follow-up which I haven't had time to work on. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
