The current syntax is making it difficult to introduce complex extension features with HSEARCH-3687 In Progress . Let's give it up and leverage the Range class, like we did for aggregations.