lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gérald Quaire (JIRA) <j...@apache.org>
Subject [jira] [Comment Edited] (LUCENE-8655) No possibility to access to the underlying "valueSource" of a FunctionScoreQuery
Date Sun, 03 Feb 2019 17:53:00 GMT

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

Gérald Quaire edited comment on LUCENE-8655 at 2/3/19 5:52 PM:
---------------------------------------------------------------

Add a new version of the patch created from master branch as requested by the last automatic
review pass (the previous version was created from branch7_x)


was (Author: gquaire):
Add a new version of the patch created from master branch as requested by the last automatic
review pass (the previous verson was created from branch7_x)

> No possibility to access to the underlying "valueSource" of a FunctionScoreQuery 
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-8655
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8655
>             Project: Lucene - Core
>          Issue Type: Improvement
>    Affects Versions: 7.6, 7.7
>            Reporter: Gérald Quaire
>            Priority: Major
>              Labels: patch
>         Attachments: LUCENE-8655.patch, LUCENE-8655.patch
>
>
> After LUCENE-8099, the "BoostedQuery" is deprecated by the use of the "FunctionScoreQuery".
With the BoostedQuery, it was possible to access at its underlying "valueSource". But it is
not the case with the class "FunctionScoreQuery". It has got only a getter for the wrapped
query,  
> For development of specific parsers, it would be necessary to access the valueSource
of a "FunctionScoreQuery". I suggest to add a new getter into the class "FunctionScoreQuery"
like below:
> {code:java}
>  /**
>    * @return the wrapped Query
>    */
>   public Query getWrappedQuery() {
>     return in;
>   }
>  /**
>    * @return the a source of scores
>    */
>   public DoubleValuesSource getValueSource() {
>     return source;
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message