public FreeTextSuggester(Analyzer indexAnalyzer, Analyzer queryAnalyzer, int grams, byte separator) {this.grams = grams;this.indexAnalyzer = addShingles(indexAnalyzer);this.queryAnalyzer = addShingles(queryAnalyzer);if (grams < 1) {throw new IllegalArgumentException("grams must be >= 1");}if ((separator & 0x80) != 0) {throw new IllegalArgumentException("separator must be simple ascii character");}this.separator = separator;}
public FreeTextSuggester(Analyzer indexAnalyzer, Analyzer queryAnalyzer, int grams, byte separator){this.grams = grams;this.indexAnalyzer = AddShingles(indexAnalyzer);this.queryAnalyzer = AddShingles(queryAnalyzer);if (grams < 1){throw new System.ArgumentException("grams must be >= 1");}if ((separator & 0x80) != 0){throw new System.ArgumentException("separator must be simple ascii character");}this.separator = separator;}