lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3330) revise Scorer visitor API
Date Mon, 15 Aug 2011 17:55:27 GMT


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:
>             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:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message