0
でキーに基づいて結果を除外します私の予想通りの結果:は、私が弾性検索でタイプについては、以下のマッピングを持っているelasticsearch
"aggregations": {
"name": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "---",
"doc_count": 169529,
"score": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": 0,
"doc_count": 160133
},
{
"key": 5,
"doc_count": 9395
},
{
"key": 4,
"doc_count": 1
}
]
}
},
{
"key": "John",
"doc_count": 1,
"score": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": 5,
"doc_count": 1
}
]
}
}
今、バケットを結果から削除するとします。ここで、name = '---'です。私は 'not'を使ってみましたが、うまくいきませんでした。どんなヒントも高く評価されます。
PS:私はelasticsearchには新しく、知識を広げようとしています。
感謝を
---
値を除外するために必要な:) –がうれしい、それは働きました! – Val