Class EdgeNGramTokenizer

    • Constructor Detail

      • EdgeNGramTokenizer

        public EdgeNGramTokenizer​(Version version,
                                  java.io.Reader input,
                                  int minGram,
                                  int maxGram)
        Creates EdgeNGramTokenizer that can generate n-grams in the sizes of the given range
        Parameters:
        version - the Lucene match version
        input - Reader holding the input to be tokenized
        minGram - the smallest n-gram to generate
        maxGram - the largest n-gram to generate
      • EdgeNGramTokenizer

        public EdgeNGramTokenizer​(Version version,
                                  AttributeSource.AttributeFactory factory,
                                  java.io.Reader input,
                                  int minGram,
                                  int maxGram)
        Creates EdgeNGramTokenizer that can generate n-grams in the sizes of the given range
        Parameters:
        version - the Lucene match version
        factory - AttributeSource.AttributeFactory to use
        input - Reader holding the input to be tokenized
        minGram - the smallest n-gram to generate
        maxGram - the largest n-gram to generate