ElasticSearch DSL查询语句
1 match_all 匹配所有查询
{
"query": { "match_all": {} } }
2 match 匹配 分词
{
"query": { "match": { "ip_category": 6 } } }
3 multi_match多值匹配
{
"query": { "multi_match": { "query": "值", "fields": [ "name", "age" ] } } }
4 term 精确匹配 不分词
{
"query": { "term": { "ip": "值" } } }
5 range 范围查询
{
"query": { "range": { "age": { "gte": 1, "lte": 6 } } } }
还没有评论,来说两句吧...