Authored by wangnan

suggest忽略大小写

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