[
https://issues.apache.org/jira/browse/LUCENE-3330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085210#comment-13085210
]
Robert Muir commented on LUCENE-3330:
-------------------------------------
Thanks for taking a look, if there are no objections i'll commit in a few days,
and open a followup issue to ensure that all scorers support traversing, there
are still a lot that need to implement the method in order to support access to
any inner scorers.
For example, in my opinion even ConstantScoreQuery shoudl allow you to get
access to its inner scorer via some "CONSTANT_SCORED" relationship or similar.
> revise Scorer visitor API
> -------------------------
>
> Key: LUCENE-3330
> URL: https://issues.apache.org/jira/browse/LUCENE-3330
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Robert Muir
> Fix For: 4.0
>
> Attachments: LUCENE-3330.patch
>
>
> Currently there is an (expert) API in scorer to allow you to take a scorer,
> and visit its children etc (e.g. booleanquery).
> I think we should improve this, so its general to all queries.
> The current issues are:
> * the current api is hardcoded for booleanquery's Occurs, but we should
> support other types of children (e.g. disjunctionmax)
> * it can be difficult to use the API, because of the amount of generics and
> the visitor callback API.
> * the current API enforces a DFS traversal when you might prefer BFS instead.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]