One way to do it would be to do just a tiny bit of preprocessing and build
your own buckets.
Then index those as not_analyzed.
From: es newbie [via ElasticSearch Users]
Sent: Wednesday, October 02, 2013 6:24 AM
Subject: How to facet on size?
I have int field 'size' that stores a size value in bytes. A requirement has
come to be able to facet on the field using an log-linear scale, e.g. Up to
1MB, Up to 10MB, 100MB, 1GB, Over 1GB
What is the best way to achieve this kind of faceting in ElasticSearch?
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an
email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
If you reply to this email, your message will be added to the discussion
To start a new topic under ElasticSearch Users, email
To unsubscribe from ElasticSearch Users, click here