From 88b01a3bb4a30392c24d32755a28f666df177671 Mon Sep 17 00:00:00 2001 From: Frank Tao <38163583+frankjtao@users.noreply.github.com> Date: Sun, 10 Jan 2021 09:02:59 -0500 Subject: [PATCH] Changed the minGramSize back to 3 (#2279) --- .../ca/uhn/fhir/jpa/search/HapiLuceneAnalysisConfigurer.java | 2 +- .../jpa/search/elastic/HapiElasticsearchAnalysisConfigurer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/HapiLuceneAnalysisConfigurer.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/HapiLuceneAnalysisConfigurer.java index e068e9b0a6a..5e2ac24acda 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/HapiLuceneAnalysisConfigurer.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/HapiLuceneAnalysisConfigurer.java @@ -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() diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/elastic/HapiElasticsearchAnalysisConfigurer.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/elastic/HapiElasticsearchAnalysisConfigurer.java index 79acbb54ec2..edc8d6496a4 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/elastic/HapiElasticsearchAnalysisConfigurer.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/elastic/HapiElasticsearchAnalysisConfigurer.java @@ -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()