$results=$client->search([
'index' => 'my_index',
'type' => 'my_type',
'body' => [
'query' => [
"multi_match" => [
"fields" =["column1","column2","column3"],
"query" => "Test",
"type" => "phrase_prefix"
]
]
]
]);
私はelasticsearchをlaravelで使用しています。上記のコードは大文字と小文字を区別しません。ElasticSearch - not_analyzedでの大文字と小文字を区別しない検索
multifields https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html –