您可以使用布尔必须:
搜索任何字段:
curl -XPOST 'http://localhost:9200/cars_index/car_type/_search' -d '{"query":{"bool":{"must":[{"query_string":{"query":"Ford"}}, {"query_string":{"query":"mustang"}}]}}}'
搜索特定字段:
curl -XPOST 'http://localhost:9200/cars_index/car_type/_search' -d '{"query":{"bool":{"must":[{"query_string":{"query":"make:Ford"}}, {"query_string":{"query":"model:mustang"}}]}}}'
您可以使用 musts、shoulds、must_not 等的组合,也可以对字段进行否定:
{"query":"-make:Ford"} (not make == Ford)
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html