📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 6.8-7.11

简而言之,当 Elasticsearch 中定义的索引模式过于复杂或数量过多,导致系统无法评估时,就会出现此错误。这可能是由于大量的通配符表达式或复杂的正则表达式造成的。要解决此问题,可以通过减少通配符或正则表达式数量来简化索引模式。或者,可以增加分配给 Elasticsearch 的资源以处理更复杂的模式。最后,考虑将数据拆分为更多具有更简单模式的索引。

日志上下文 #

日志 “The set of permitted index patterns [{}] is too complex to evaluate” 的类名是 IndicesPermission.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:

LogManager.getLogger(IndicesPermission.class).debug("Index pattern automaton [{}] is too complex"; indices);
 String description = Strings.collectionToCommaDelimitedString(indices);
 if (description.length() > 80) {
 description = Strings.cleanTruncate(description; 80) + "...";
 }
 throw new ElasticsearchSecurityException("The set of permitted index patterns [{}] is too complex to evaluate"; e; description);
 }
 }  public Group[] groups() {
 return groups;