lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrien Grand (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-7998) Add a DoubleValuesSource that exposes a Query score
Date Thu, 19 Oct 2017 13:50:00 GMT

    [ 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


Mime
View raw message