diff options
author | Christoph Büscher <christoph@elastic.co> | 2016-04-15 12:05:45 +0200 |
---|---|---|
committer | Christoph Büscher <christoph@elastic.co> | 2016-04-15 15:15:32 +0200 |
commit | de036d63d8417da87a7a80d1d5ff7ac4755f4ec7 (patch) | |
tree | d5f9ea05e03429f6696f27b9156e302e206c128d /core/src/main/java/org/elasticsearch/index/query/ConstantScoreQueryBuilder.java | |
parent | 15c59d07b325c3e72dd0e8fc90cc0811285efff9 (diff) |
Rename context.parseFieldMatcher() to context.getParseFieldMatcher
Diffstat (limited to 'core/src/main/java/org/elasticsearch/index/query/ConstantScoreQueryBuilder.java')
-rw-r--r-- | core/src/main/java/org/elasticsearch/index/query/ConstantScoreQueryBuilder.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/main/java/org/elasticsearch/index/query/ConstantScoreQueryBuilder.java b/core/src/main/java/org/elasticsearch/index/query/ConstantScoreQueryBuilder.java index 1751ef4e74..f2d2afcd91 100644 --- a/core/src/main/java/org/elasticsearch/index/query/ConstantScoreQueryBuilder.java +++ b/core/src/main/java/org/elasticsearch/index/query/ConstantScoreQueryBuilder.java @@ -102,7 +102,7 @@ public class ConstantScoreQueryBuilder extends AbstractQueryBuilder<ConstantScor } else if (parseContext.isDeprecatedSetting(currentFieldName)) { // skip } else if (token == XContentParser.Token.START_OBJECT) { - if (parseContext.parseFieldMatcher().match(currentFieldName, INNER_QUERY_FIELD)) { + if (parseContext.getParseFieldMatcher().match(currentFieldName, INNER_QUERY_FIELD)) { if (queryFound) { throw new ParsingException(parser.getTokenLocation(), "[" + ConstantScoreQueryBuilder.NAME + "]" + " accepts only one 'filter' element."); @@ -114,9 +114,9 @@ public class ConstantScoreQueryBuilder extends AbstractQueryBuilder<ConstantScor "[constant_score] query does not support [" + currentFieldName + "]"); } } else if (token.isValue()) { - if (parseContext.parseFieldMatcher().match(currentFieldName, AbstractQueryBuilder.NAME_FIELD)) { + if (parseContext.getParseFieldMatcher().match(currentFieldName, AbstractQueryBuilder.NAME_FIELD)) { queryName = parser.text(); - } else if (parseContext.parseFieldMatcher().match(currentFieldName, AbstractQueryBuilder.BOOST_FIELD)) { + } else if (parseContext.getParseFieldMatcher().match(currentFieldName, AbstractQueryBuilder.BOOST_FIELD)) { boost = parser.floatValue(); } else { throw new ParsingException(parser.getTokenLocation(), |