[ https://issues.apache.org/jira/browse/LUCENE-8655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16759796#comment-16759796 ]
Lucene/Solr QA commented on LUCENE-8655: ---------------------------------------- | (/) *{color:green}+1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} test4tests {color} | {color:green} 0m 0s{color} | {color:green} The patch appears to include 1 new or modified test files. {color} | || || || || {color:brown} master Compile Tests {color} || | {color:green}+1{color} | {color:green} compile {color} | {color:green} 0m 18s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} compile {color} | {color:green} 0m 17s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 0m 17s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} Release audit (RAT) {color} | {color:green} 0m 17s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} Check forbidden APIs {color} | {color:green} 0m 17s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} Validate source patterns {color} | {color:green} 0m 17s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} unit {color} | {color:green} 0m 19s{color} | {color:green} queries in the patch passed. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 5m 45s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | JIRA Issue | LUCENE-8655 | | JIRA Patch URL | https://issues.apache.org/jira/secure/attachment/12957454/LUCENE-8655.patch | | Optional Tests | compile javac unit ratsources checkforbiddenapis validatesourcepatterns | | uname | Linux lucene2-us-west.apache.org 4.4.0-112-generic #135-Ubuntu SMP Fri Jan 19 11:48:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux | | Build tool | ant | | Personality | /home/jenkins/jenkins-slave/workspace/PreCommit-LUCENE-Build/sourcedir/dev-tools/test-patch/lucene-solr-yetus-personality.sh | | git revision | master / 49dc7a9 | | ant | version: Apache Ant(TM) version 1.9.6 compiled on July 20 2018 | | Default Java | 1.8.0_191 | | Test Results | https://builds.apache.org/job/PreCommit-LUCENE-Build/161/testReport/ | | modules | C: lucene lucene/queries U: lucene | | Console output | https://builds.apache.org/job/PreCommit-LUCENE-Build/161/console | | Powered by | Apache Yetus 0.7.0 http://yetus.apache.org | This message was automatically generated. > 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 > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org