Changed the minGramSize back to 3 (#2279)

This commit is contained in:
Frank Tao 2021-01-10 09:02:59 -05:00 committed by GitHub
parent 0b6e8e3f4d
commit 88b01a3bb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ public class HapiLuceneAnalysisConfigurer implements LuceneAnalysisConfigurer {
.tokenFilter(LowerCaseFilterFactory.class)
.tokenFilter(StopFilterFactory.class)
.tokenFilter(EdgeNGramFilterFactory.class)
.param("minGramSize", "2")
.param("minGramSize", "3")
.param("maxGramSize", "20");
theLuceneCtx.analyzer("standardAnalyzer").custom()

View File

@ -49,7 +49,7 @@ public class HapiElasticsearchAnalysisConfigurer implements ElasticsearchAnalysi
theConfigCtx.tokenFilter("wordedgengram_3_50")
.type("edgeNGram")
.param("min_gram", "2")
.param("min_gram", "3")
.param("max_gram", "20");
theConfigCtx.analyzer("autocompletePhoneticAnalyzer").custom()