Hi there,
I think I know the answer. I read the docs and it seems to indicate that I
would need to make it a nested query. I thought I would ask so I could
gain some confidence that I am starting to read and understand the
documentation and terminology.
I have records like this
- a: Brave New World
- b: Matrix
- c:1,2,3,4,5,6|0|The Selfish Gene
- d: alpha
- e: Mac
- f: Safari
- g: 7
- h: en
I have millions of records like this. I want to count the values in c as
individual values
- a: Brave New World
- b: Matrix
- c:3,5|0|The Selfish Gene
- d: alpha
- e: Mac
- f: Safari
- g: 7
- h: en
the answer would be
1,1
2,1
3,2
4,1
5,2
6,1
I know how to get the c records and then extract the values myself by doing
two splits putting them into an array and sorting it.
What I would like to do is not do that work because I have many json
objects with the same property. Yes I can create an individual entry for
each one. I am asking can I parse a match and push it back on the output
stream so that it can be recounted.
Rinaldo
--
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/533f59a8-1302-4568-9c8e-842ae0a2f95e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.