Hi, I am trying to exclude all buckets that are contained in another buckets 'term' field. For example
{
"key": "1",
"doc_count": 2
},
{
"key": "12",
"doc_count": 2
},
{
"key": "123",
"doc_count": 2
},
{
"key": "1234",
"doc_count": 2
},
{
"key": "12345",
"doc_count": 1
},
}``
I want the output to be
``` "buckets":[ {
"key" : "12345"
"doc_count" : 1
}]
``
as it contains all other buckets. How can I do this using aggs or filters?
Please be patient. The forum is manned by volunteers and it is now weekend. Also please do not address specific individuals unless they have already responded to your query.
Please be patient. The forum is manned by volunteers and it is now weekend. Also please do not address specific individuals unless they have already responded to your query.
Hi, thank you for your reply.. How do you think, can ES filter from query if we consider that the inputs are not buckets, but just documents? So that, from the filter query we receive the document that is not contained by other document? @warkolm
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.