Skip to content

Commit

Permalink
iter
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Büscher committed Nov 6, 2018
1 parent 41e0200 commit a1e2c1e
Showing 1 changed file with 4 additions and 6 deletions.
Expand Up @@ -162,14 +162,12 @@ public static Map<String, Float> resolveMappingField(QueryShardContext context,

private static void checkForTooManyFields(Map<String, Float> 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);
}
}
}

0 comments on commit a1e2c1e

Please sign in to comment.