Adding my own Analyzers

I would like to add my own Analyzer (my own Analyzer class, e.g. x.y.CustomAnalyzer - I can ensure its compiled with the same version of Lucene used by elastic search - I'm using 0.13.1) to be used in indexing and search.
Is this possible and how would I specify that Analyzer to be used (in the configuration).

If I am able to add my own Analyzer, do I have to add the class to every node in the ES cluster, or only to the node (client) that I am primarily doing indexing and searches from.

Thanks!