[ES from entry to actual combat] 12. Full-text search-ElasticSearch-advanced-match_phrase phrase matching

Continue 11 sessions

4), match_phrase [phrase match]

Retrieve the value to be matched as a whole word (no word segmentation)

For Chestnut: Isolated address contained in mill roadall records, the relevance score and give

GET /bank/_search
{
    
    
  "query": {
    
    
    "match_phrase": {
    
    
      "address": "mill road"
    }
  }
}

Insert picture description here

Reference document-query-dsl


reference:

Elasticsearch Reference

elastic

Getting started with the full-text search engine Elasticsearch

Guess you like

Origin blog.csdn.net/runewbie/article/details/106343460