Plugin entry point

Hi ,

Is there a documentation on plugin entry points for elasticSearch ???

What i want is to run my code whenever someone submits a document to
index ....
If this is possible , please let me know the entry point.

Thanks
Vineeth