Continue 12 sessions
5), multi_match [multi-field matching]
Example: state or address contains mill
GET /bank/_search
{
"query": {
"multi_match": {
"query": "mill",
"fields": ["address","state"]
}
}
}
Word segmentation will also be performed during multi-field query, with the highest score in the front:
GET /bank/_search
{
"query": {
"multi_match": {
"query": "mill movico",
"fields": ["address","city"]
}
}
}
reference:
Getting started with the full-text search engine Elasticsearch