[ 
https://issues.apache.org/jira/browse/LUCENE-7957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16153732#comment-16153732
 ] 

Michael McCandless commented on LUCENE-7957:
--------------------------------------------

Thanks [~jpountz]; I think I hope we don't remove this API.

I'm running BooleanQuery that (roughly) looks for text matches from three 
possible places: 1) user-visible text fields (e.g. title), 2) a hidden keywords 
field and 3) in another hidden field recording what past queries led to user 
actions on this item.

I use a complex expression for scoring these hits, and one of the inputs to 
that expression was "did this hit match only due to #2?" or "only due to #3?", 
i.e. it wants to see which sub-clauses lead to this document being a hit, and 
score differently.

I realize I could also run 3 separate queries, and save away arrays to remember 
which clause contributed to which hits, but I suspect that's less efficient / 
more RAM consuming.

> ConjunctionScorer.getChildren does not return all children
> ----------------------------------------------------------
>
>                 Key: LUCENE-7957
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7957
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/search
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: master (8.0), 7.1
>
>
> Today it returns all scoring children and misses the `FILTER` clauses; I 
> think we just need to save the incoming `required` parameter to the ctor and 
> iterate over those in `getChildren` since `scorers` is a subset of `required`?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to