Multiple date histogram on a single call

Hi ,

For the same result query , i want to create multiple date histograms based
on values of a field.
Lets say i have a field called Type. Its value can be AA,BB,CC.
Now for any query i want to create a graph based on value AA and BB and CC.
So instead of firing 3 queries with different values of Type , is it
possible to get date histogram for each value of Type.

Thanks
Vineeth

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

not really sure if I got your question right, but querying for multiple
date histogram values is not a problem.

curl -X PUT localhost:9200/test/test/1 '{ "date1":"2010/01/01", "date2" :
"2011/01/01" }'
curl -X POST localhost:9200/test/test/_search -d '{ "query" : {
"match_all": { } }, "facets" : { "date1" : { "date_histogram" : {
"field":"date1", "interval":"1d" } }, "date2" : { "date_histogram" : {
"field":"date2", "interval":"1d" } } } } '

This facets on both date fields. However I am not sure if you meant that
with AA, BB and CC.

On Wed, Apr 3, 2013 at 4:23 PM, Vineeth Mohan vineethmohan@algotree.comwrote:

Hi ,

For the same result query , i want to create multiple date histograms
based on values of a field.
Lets say i have a field called Type. Its value can be AA,BB,CC.
Now for any query i want to create a graph based on value AA and BB and CC.
So instead of firing 3 queries with different values of Type , is it
possible to get date histogram for each value of Type.

Thanks
Vineeth

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.