ElasticSearch[5.5] Aggs Range filter on string datatype

That could be a good solution for RAM field and what about incase of field like battery capacity.

It would be good if it has inbuilt support like size aggregate as you mentioned.