How to listen for new index creation events?


Creating a plugin that performs certain actions whenever an index is created and can't seem to find the best place to register a listener for that. I see onIndexModule which seems to happen for creation events, but also for every index on startup. And then there is the ClusterChangedEvent for the cluster listener, but it seems like that might be costly to be filtering through every cluster change event (and even then I can't seem to find a way to explicitly find this is an index create event on that besides the source string).

Is there somewhere else I'm missing?


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