Description
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:
/** * @return the wrapped Query */ public Query getWrappedQuery() { return in; } /** * @return the a source of scores */ public DoubleValuesSource getValueSource() { return source; }
Attachments
Attachments
Issue Links
- relates to
-
LUCENE-8099 Deprecate CustomScoreQuery, BoostedQuery and BoostingQuery
- Closed