What is the best query for this Watcher?

I have multiple term values that are for the customer field. I would like to set up a Watcher to alert me when ANY of our customers have a document count less than a certain amount. I currently have one dedicated watcher for each customervalue, but it would be nice to have one for everything. Is there a good way to do this?

Thank you.

Bump

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

Hey,

instead of a watch per customer, you could go with a terms aggregation. However bear in mind that counts are not accurate and this might be especially true for the data you are after.

Can you maybe explain your use-case a bit more? how many customers? what kind of minimum value? That might help to find the proper setup.

--Alex