Class PreConfiguredTokenizer

    • Method Detail

      • singleton

        public static PreConfiguredTokenizer singleton​(java.lang.String name,
                                                       java.util.function.Supplier<org.apache.lucene.analysis.Tokenizer> create)
        Create a pre-configured tokenizer that may not vary at all.
        Parameters:
        name - the name of the tokenizer in the api
        create - builds the tokenizer
      • luceneVersion

        public static PreConfiguredTokenizer luceneVersion​(java.lang.String name,
                                                           java.util.function.Function<org.apache.lucene.util.Version,​org.apache.lucene.analysis.Tokenizer> create)
        Create a pre-configured tokenizer that may vary based on the Lucene version.
        Parameters:
        name - the name of the tokenizer in the api
        create - builds the tokenizer
      • elasticsearchVersion

        public static PreConfiguredTokenizer elasticsearchVersion​(java.lang.String name,
                                                                  java.util.function.Function<Version,​org.apache.lucene.analysis.Tokenizer> create)
        Create a pre-configured tokenizer that may vary based on the Elasticsearch version.
        Parameters:
        name - the name of the tokenizer in the api
        create - builds the tokenizer