[ https://issues.apache.org/jira/browse/LUCENE-9640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17252538#comment-17252538 ]
Michael McCandless commented on LUCENE-9640: -------------------------------------------- Disclaimer: [~elbek....@gmail.com] and I both work at Amazon, on customer facing product search. I suggested [~elbek....@gmail.com] to open this issue, but the idea is not very far along yet The idea here is to provide a better / more contained solution than {{Scorable.getChildren}} for tracking which query clause matched which hits. I.e. when Lucene users want to know if a given query clause matched each hit, they could wrap those clauses in {{TrackingQuery}}, but other clauses that they don't care about can remain as normal clauses. They would also need custom {{Collector}} to record details from their {{TrackingQuery}}. And then we could deprecate/remove {{Scorable.getChildren}}, maybe? So this way it would only be {{TrackingQuery}} that suffers from the performance hit of to truly do "doc at a time scoring", rather than any {{BooleanQuery}}. Or maybe it's a bad idea. Or maybe there is some other way to enable users to track which query clause(s) matched which hits ... > Add TrackingQuery to track matching documents > --------------------------------------------- > > Key: LUCENE-9640 > URL: https://issues.apache.org/jira/browse/LUCENE-9640 > Project: Lucene - Core > Issue Type: New Feature > Components: core/search > Reporter: Elbek Kamoliddinov > Priority: Major > Labels: query > > Some users benefit having {{TrackingQuery}} functionality. This query would > wrap another query and should be able to provide the matched DocIds for the > wrapped query after search is run. For example a user running a boolean > query {{A or B}} could wrap query {{A}} into {{TrackingQuery}} and run the > boolean query and check if documents that matched the boolean query matches > the query {{A}}. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org