Skip to content

Commit 132772c

Browse files
authored
Update list.js
1 parent b7b998e commit 132772c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/projects/list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const buildEsFullTextQuery = (keyword, matchType, singleFieldName) => {
6464
query: {
6565
query_string: {
6666
query: (matchType === MATCH_TYPE_EXACT_PHRASE) ? keyword : `*${keyword}*`,
67-
analyze_wildcard: (matchType === MATCH_TYPE_WILDCARD),
67+
analyze_wildcard: (matchType === MATCH_TYPE_WILDCARD || matchType === MATCH_TYPE_SINGLE_FIELD),
6868
fields: ['details.utm.code^4'],
6969
},
7070
},

0 commit comments

Comments
 (0)