Skip to content

Commit 8c93875

Browse files
author
srt
committed
解决数字不能搜索的问题
1 parent 4a3d42e commit 8c93875

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ElasticsearchEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ protected function performSearch(Builder $builder, array $options = [])
138138
'body' => [
139139
'query' => [
140140
'bool' => [
141-
'must' => [['query_string' => [ 'query' => "*{$builder->query}*"]]]
141+
'must' => [['query_string' => [ 'query' => "{$builder->query}"]]]
142142
]
143143
]
144144
]

0 commit comments

Comments
 (0)