Make AbstractQueryBuilder.declareStandardFields to be protected (#27894)
This commit is contained in:
parent
32669ca265
commit
192b263e31
|
@ -352,7 +352,7 @@ public abstract class AbstractQueryBuilder<QB extends AbstractQueryBuilder<QB>>
|
||||||
* {@link MatchAllQueryBuilder} and {@link MatchNoneQueryBuilder} support these fields so they
|
* {@link MatchAllQueryBuilder} and {@link MatchNoneQueryBuilder} support these fields so they
|
||||||
* should use this method.
|
* should use this method.
|
||||||
*/
|
*/
|
||||||
static void declareStandardFields(AbstractObjectParser<? extends QueryBuilder, ?> parser) {
|
protected static void declareStandardFields(AbstractObjectParser<? extends QueryBuilder, ?> parser) {
|
||||||
parser.declareFloat(QueryBuilder::boost, AbstractQueryBuilder.BOOST_FIELD);
|
parser.declareFloat(QueryBuilder::boost, AbstractQueryBuilder.BOOST_FIELD);
|
||||||
parser.declareString(QueryBuilder::queryName, AbstractQueryBuilder.NAME_FIELD);
|
parser.declareString(QueryBuilder::queryName, AbstractQueryBuilder.NAME_FIELD);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue