一.全文搜索介绍 Full text queries 全文搜索主要有以下几种类型: 1.1 匹配查询(match query) QueryBuilder qb = matchQuery( "name", //field 字段 "kimchy elasticsearch" // text ); DSL 查询语句: GET /_search { "query": { "match" : { "message" : "this is a test" } } } 1.2 多字段查询(multi_match query) 可以用来对多个字段的版本进行匹配查询 QueryBuilder qb = multiMatchQuery( "kimchy elasticsearch", //text "user", "message" //fields 多个字段 ); DSL查询语句: GET /_search { "query": { "multi_match" : { "query": "this is a test", "fields": [ "subject", "message" ] } }...