Elastic analyzers and Java API

Hi,
I would like to use Elastic analyzer (such as stop_words, stem or other) through Java API.
I tried searching for some documentation on how to do it but failed to found.

I would like to get your assistance in referring me to the write section or tutorial on how to configure it.

Thank you,
Moshe