$results=$client->search([
'index' => 'my_index',
'type' => 'my_type',
'body' => [
'query' => [
"multi_match" => [
"fields" =["column1","column2","column3"],
"query" => "Test",
"type" => "phrase_prefix"
]
]
]
]);
我正在使用elasticsearch和laravel.How如何使上面的代碼不區分大小寫。ElasticSearch - 在not_analyzed上不區分大小寫的搜索
查找到multifields https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html –