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?
Thanks. User is just 1 field in my docs, which actually represent all
requests made to my system. What I would really like is to just get a
count of the "heavy", "medium", and "light" users, where heavy would be
users that have made say > 10 requests. I guess what I would need would be
something like a terms_range agg.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.