0
Iam이 elasticsearch에서 필터로 결과를 수집하려고합니다. 필터를 추가 할 때 예기치 않은 결과가 발생합니다. (iam은 "예외"또는 "오류"라는 용어와 일치하는 결과 만 볼 것을 기대합니다).필터가 bool과 함께 작동하지 않음
아마도 필터를 잘못된 위치에 배치 했습니까?
{
"query": {
"bool": {
"should": [
{
"match": {
"message": "error"
}
},
{
"match": {
"message": "exception"
}
}
],
"must_not": {
"match": {
"message": "io.vertx.spi.cluster.zookeeper.ZookeeperClusterManager"
}
},
"filter": [
{
"range": {
"@timestamp": {
"gt": "now-1000m"
}
}
}
]
}
}
}
여기에 정보가 많지 않습니다. 예상치 못한 결과는 무엇입니까? –
'@ timestamp'의 매핑과 "일치하지 않는"일치하는 문서의 예제를 보여줍니다. –
''minimum_should_match ': 1' juste를'should'에 추가하면 어떻게됩니까? – Val