Make AbstractQueryBuilder.declareStandardFields to be protected (#27894)

This commit is contained in:
kel 2017-12-19 23:34:08 +08:00 committed by Christoph Büscher
parent 32669ca265
commit 192b263e31
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ public abstract class AbstractQueryBuilder<QB extends AbstractQueryBuilder<QB>>
* {@link MatchAllQueryBuilder} and {@link MatchNoneQueryBuilder} support these fields so they
* 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.declareString(QueryBuilder::queryName, AbstractQueryBuilder.NAME_FIELD);
}