I am new to elastic search plugins and finding difficult on how to access Indexreader object in a plugin while performing the searching request of an index. I want something like this.
A user performs the search request
On executing the above, Plugin-Test should be called with access of the Indexreader object.
Please provide me sample code for the same