Filter aggregation results

HI ,
I have a use case where i have to perform autocomplete for field commodity line.For example when i try to match-'3' and "commodity_line" is ["11","32","35"]
When i am doing a terms aggregation it returns 35,32,11.
how do i filter the aggregation result so it only returns results beginning with 3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.