For example, assume I have the following docs:
{user:"Mike"}
{user:"John"}
{user:"Mike"}
{user:"Sara"}
{user:"Sara"}
{user:"Sara"}
I can do a terms agg on user and get:
Sara: 3
Mike: 2
John: 1
What if I didn't care about the actual total number of terms per value, and
instead just wanted them bucketed into say 2 bins, those that had counts
<=1, and those >=2?
Users Showing up >= 2 Times: 2
Users Showing up < 2 Times: 1
The range agg seems to give me the flexibility that I want in creating
buckets, that that is based on the actual numeric value of a field like
score or price. Is there a way to do the above without iterating through
the thousands of terms myself on the client side?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/4f36c603-eb3b-45a0-ad73-dd6f97a5a0fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.