找到官网的具体文档步骤:
按照文档进行练习Query DSL
加深记忆:
1、"_source": ["account_number","age"] 指定返回的字段
2、分词匹配
GET /bank/_search { "query": { "match": { "address": "mill lane" } } }
3、短语匹配
GET /bank/_search { "query": { "match_phrase": { "address": "mill lane" } }
找到官网的具体文档步骤:
按照文档进行练习Query DSL
加深记忆:
1、"_source": ["account_number","age"] 指定返回的字段
2、分词匹配
GET /bank/_search { "query": { "match": { "address": "mill lane" } } }
3、短语匹配
GET /bank/_search { "query": { "match_phrase": { "address": "mill lane" } }