Showing
1 changed file
with
2 additions
and
1 deletions
@@ -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 |
-
Please register or login to post a comment