Intercept DOC creation event – Open Source Elasticsearch and Kibana

hi, i’m implementing a custom search plugin and i have a question about the doc events that can be intercepted in Opensearch.
I need to intercept the freshly added documents inside my plugin and receive the doc ids after they added to index.
Those ids needed to pull only the fresh documents and send them elsewhere.
I have no control over Opensearch index mapping and can’t modify docs or use additional pipelines.

Is there any listeners/events/interfaces that allow me to achieve that?

Read more here: Source link