elasticsearch multi match query(多字段查询)
允许多个字段的查询
{
"multi_match" : {
"query": "this is a test",
"fields": [ "subject", "message" ]
}
}
{
"multi_match" : {
"query": "Will Smith",
"fields": [ "title", "*_name" ]
}
}