I currently have a cron job that is looking at a field called "ex.set" and performs these tasks:
- For every index, run a terms aggregation on the field "ex.set"
- For every index, get every existing alias
- For every unique term appearing in an index in "ex.set", if it does not have an existing alias, create a filtered alias
The job runs every ten minutes but most of the time does not find anything. Is there a way or a plugin (compatible with 2.3.x), that will automatically detect when a new unique term has been inserted into an index on a specific field in a specific index? And then if there is a unique item trigger the creation of a filtered alias on that index? Thank you in advance for any ideas or solutions.