Doc 1
* rank 1: user A
* rank 2: user B
* rank 3: user C
Doc 2
* rank 1: user A
* rank 2: user A
* rank 3: user D
Now I want to count the number of user A in rank 1. It's expected to be 2, but the aggregation search I use returns 3 (because it include rank 2 as well). The aggregation search I use is
Sorry my bad. Didn't notice that was too abstract. The docs returned its structure should look like one below (Apologize I do not have data at hand so based on my memory if it serves correctly)
level1tag : {
... other attrs or tags
level2tag: {
... other attrs or tags
level3tag: {
level3_attr1: "value A"
level4tag: {
level4_attr1: "value B"
... other attrs or tags
}
... other attrs or tags
}
}
}
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.