Hi all
Now I'm trying to get the size of the facet term and trying to display the
result on Kibana
As I do:
curl -XGET "http://localhost:9200/logstash-2013.10.31/_search?pretty=true"
-d '
{
"facets" : {
"tags" : { "terms" : {"field" : "uid", "size" : 3} }
}
}
'
The facets part returns:
"facets" : {
"tags" : {
"_type" : "terms",
"missing" : 34,
"total" : 20,
"other" : 4,
"terms" : [ {
"term" : "uid_a",
"count" : 9
}, {
"term" : "uid_b",
"count" : 4
}, {
"term" : "uid_c",
"count" : 3
} ]
}
}
Actually there are 5 different uid but I set the size to 3 so it return the
top 3 user with the most count.
And what I want is the total uid that appear on my query.
Is there any query that I can get the exact size, which is 5 in this case,
of the specific field??
What I'm trying to do is to count the active uid # of a time interval (say
1day, 7days, 15days etc.) and create a graph on Kibana.
Does anyone have the experience?
Thanks a lot!
--
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.