Authored by wangnan

suggest忽略大小写

@@ -85,7 +85,8 @@ public class SearchServiceHelper { @@ -85,7 +85,8 @@ public class SearchServiceHelper {
85 } 85 }
86 86
87 if (isSuggest) { 87 if (isSuggest) {
88 - WildcardQueryBuilder wildcardQueryBuilder = QueryBuilders.wildcardQuery("suggest", "*" + keyword + "*"); 88 + String lowKeyword = keyword.toLowerCase();
  89 + WildcardQueryBuilder wildcardQueryBuilder = QueryBuilders.wildcardQuery("suggest", "*" + lowKeyword + "*");
89 return wildcardQueryBuilder; 90 return wildcardQueryBuilder;
90 } else { 91 } else {
91 //构建MultiMatch 92 //构建MultiMatch