[prev in list] [next in list] [prev in thread] [next in thread] 

List:       solr-dev
Subject:    [jira] [Updated] (LUCENE-8655) No possibility to access to the underlying "valueSource" of a Functio
From:       Gérald_Quaire_(JIRA) <jira () apache ! org>
Date:       2019-01-31 17:56:00
Message-ID: JIRA.13211322.1548260483000.214434.1548957360097 () Atlassian ! JIRA
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/LUCENE-8655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Gérald Quaire updated LUCENE-8655:
----------------------------------
    Attachment:     (was: LUCENE-8655.patch)

> 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
> Reporter: Gérald Quaire
> Priority: Major
> Labels: 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic