Date Histogram Bucket Count?

Is it possible to apply a filter to date histogram buckets ?
For example return only buckets that are below a certain value. I was
looking to do it with scripts but dont know how to access buckets in
script, so if anyone knows anything about that, it would be very very very
helpful

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/57052d83-57ea-4037-b87d-708eb040d557%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.