我正试图在我的Kibana弹性搜索查询中有多个通配符查询匹配 . 我无法弄明白 .
基本上我想要任何属性类型=“erreur”的文档
我想在字段descr_courte上排除所有与字符串“An established *”或“java.lang . *”匹配的文档
{
"query": {
"bool": {
"must": {
"term": {
"type": "erreur"
}
},
"must_not": {
"wildcard": {
"descr_courte": ["An established*", "java.lang.*"]
}
}
}
}
}
如果我放一个通配符查询它工作正常
{
"query": {
"bool": {
"must": {
"term": {
"type": "erreur"
}
},
"must_not": {
"wildcard": {
"descr_courte":
"An established*"
}
}
}
}
}
我得到的错误:
错误:对Elasticsearch的请求失败:{“error”:{“root_cause”:[{“type”:“illegal_state_exception”,“reason”:“无法在1:454的START_ARRAY上获取文字”},“类型“:”search_phase_execution_exception“,”reason“:”所有分片有什么想法吗?