You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2017/10/19 13:50:00 UTC

[jira] [Commented] (LUCENE-7998) Add a DoubleValuesSource that exposes a Query score

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

Adrien Grand commented on LUCENE-7998:
--------------------------------------

+1

For the record I'd like to draw attention to the fact that since weights have references to index readers while queries cannot hold references to index readers (otherwise it causes memory leaks when caching), it probably means that queries that need values sources should not rewrite the values source at rewrite time but at createWeight time?

> Add a DoubleValuesSource that exposes a Query score
> ---------------------------------------------------
>
>                 Key: LUCENE-7998
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7998
>             Project: Lucene - Core
>          Issue Type: New Feature
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>            Priority: Minor
>         Attachments: LUCENE-7998.patch
>
>
> This will allow us to reproduce the behaviour of BoostingQuery with a FunctionScoreQuery, either by passing a simple wrapped Query as a single DVS or by combining several of them using the expressions module.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org