You will need to implement AnalysisBinderProcessor, which will make your analyzer available for elasticsearch and turn it into an elasticsearch plugin. The easiest way to do this is to start with one of the many examples available on github.
source
share