diff --git a/server/src/main/java/org/elasticsearch/index/search/QueryParserHelper.java b/server/src/main/java/org/elasticsearch/index/search/QueryParserHelper.java index 0f959bce5fdbf..03d9282be1b53 100644 --- a/server/src/main/java/org/elasticsearch/index/search/QueryParserHelper.java +++ b/server/src/main/java/org/elasticsearch/index/search/QueryParserHelper.java @@ -162,14 +162,12 @@ public static Map resolveMappingField(QueryShardContext context, private static void checkForTooManyFields(Map fields, QueryShardContext context) { Integer limit = SearchModule.INDICES_MAX_CLAUSE_COUNT_SETTING.get(context.getIndexSettings().getSettings()); - System.out.println(limit); if (fields.size() > limit) { DEPRECATION_LOGGER.deprecatedAndMaybeLog("field_expansion_limit", - "Field expansion matches too many fields, got: {}. This will be limited starting with version 7.0 of Elasticsearch. " - + "The limit will be detemined by the `indices.query.bool.max_clause_count` setting which is currently set to {}. " - + "You should look at lowering the maximum number of fields targeted by a query or increase the above limit " - + "while being aware that this can negatively affect your clusters performance.", - fields.size(), limit); + "Field expansion matches too many fields, got: {}. This will be limited starting with version 7.0 of Elasticsearch. " + + "The limit will be detemined by the `indices.query.bool.max_clause_count` setting which is currently set to {}. " + + "You should look at lowering the maximum number of fields targeted by a query or increase the above limit " + + "while being aware that this can negatively affect your clusters performance.", fields.size(), limit); } } }