I have provided a sample record below and I want to see if based on this
data, I can output the facet I am looking for.
{
user: {
name: "bob",
metadata: [
{
questionid: 448
parameterid: cid
response: 71668
},
{
questionid: 449
parameterid: dc
response: AP100
},
{
questionid: 450
parameterid: cc
response: GHUE
}
]
}
}
I am looking to create a facet that will tell me the number of occurrences
for the responses based on the paramterid groups. So for example:
CID
71668 (3)
DC
AP100 (2)
CC
DHUE (3)
The numbers in the parenthesis indicate a sample of how many of each were
found - these of course are made up numbers.
So basically, I want to ensure I group each of the responses by the
parameterid. So for example if GHUE actually appeared under the "dc"
parameterid, it would be counted under that group and we would see a DHUE
under each cc and dc.
I hope that makes sense.
Thanks in advance.
Jason
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3dcd0777-e309-4e23-95b1-04a29c77fe7d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.