Plugin to modify "get" and "search" action results

I want to implement a elasticsearch plugin, which could modify the get and search action results, such as modify the field's value of docs, then return the modified docs result to users.
I want to know which kind of plugin should I implements, ActionPlugin or others? Which method I should Override? And any other helpful information.
Elasticsearch version: 6.7.2

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