Elasticsearch Query DSL (三)
8.4. Query DSL
8.4.1. match 匹配
curl -XGET 'http://localhost:9200/information/news/_search?pretty' -d ' { "query" : { "match" : { "tag" : "美" } } } '
8.4.2. multi_match 多字段匹配
multi_match 实现多字段查询
curl -XGET 'http://localhost:9200/information/news/_search?pretty' -d ' { "query": { "multi_match": { "query": "国际", "type": "cross_fields", "fields": [ "title", "content" ], "operator": "and" } }, "from": 0, "size": 20, "_source":["id","title","ctime"], "sort