I want to execute my search for specific data field and its values so that if any of the field's values count goes below x, it will be shown in the graph and the name of that value will be shown in the legend. Otherwise no data will be shown.
Now my problem is this:
When my search is executed the search result exceeds the set limit (lte) and shows results event beyond x (count).
In this example the x = 5.
.es(split=data.valuename:10).if(lte, 5, .es(split=data.valuename:10), null)