title: How do I configure/initialize a custom Elasticsearch Tokenizer
body: <p>I am writing a custom Elasticsearch Tokenizer.  The documentation only specifies a constructor for passing a Reader for getting the string to be tokenized and an incrementToken() method for producing the tokens.  I can see no signs of an option to configure the tokenizer.  I see references to Lucene TokenizerFactories that seem to provide a configuration option, but don't see them mentioned in any Elasticsearch context.  My tokenizer is a trivial extension of the base Tokenizer class:</p>
  
  <pre><code>public class LCCNTokenizer extends Tokenizer {
      private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class);
  
      public LCCNTokenizer(Reader reader) {
      }
  
      @Override
      public boolean incrementToken() throws IOException {
          return false;
      }
  }
  </code></pre>
  
  <p>How do I configure a custom Elasticsearch Tokenizer?</p>