lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doron Cohen (JIRA)" <>
Subject [jira] Commented: (LUCENE-1019) CustomScoreQuery should support multiple ValueSourceQueries
Date Sun, 02 Dec 2007 21:48:43 GMT


Doron Cohen commented on LUCENE-1019:

    * The way in which caching is handled is now unclear.

For e.g. IntFieldSource caching is done in that level, so I am not sure 
I understand about what is unclear here.

    *  Trying to get explain information from the sub-ValueSources was quite difficult.
    * There is much more code in my queries, leading to increased brittleness.

Yes I agree about this part.
I had the similar experience when combining field values, and decided to just live with that.

In a glance, the v2 patch seems to solve this nicely so I will look into committing this.

Thanks for bringing this up,

> CustomScoreQuery should support multiple ValueSourceQueries
> -----------------------------------------------------------
>                 Key: LUCENE-1019
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>    Affects Versions: 2.2
>            Reporter: Kyle Maxwell
>         Attachments: CustomMultiQuery.v0.diff, CustomScoreQuery.v1.diff
> CustomScoreQuery's constructor currently accepts a subQuery, and a ValueSourceQuery.
 I would like it to accept multiple ValueSourceQueries.  The workaround of nested CustomScoreQueries
works for simple cases, but it quickly becomes either cumbersome to manage, or impossible
to implement the desired function.
> This patch implements CustomMultiScoreQuery with my desired functionality, and refactors
CustomScoreQuery to implement the special case of a CustomMultiScoreQuery with 0 or 1 ValueSourceQueries.
 This keeps the CustomScoreQuery API intact.
> This patch includes basic tests, more or less taken from the original implementation,
and customized a bit to cover the new cases.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message