ElasticSearch的常用搜索方法
单个条件
from,size可省略,size默认10
curl 'localhost:9200/accounts/person/_search' -d '
{
"query": {
"match": {
"desc": "管理"
}
},
"from": 0,
"size": 10,
"sort": [
{
"order_no": "asc"
}
]
}'
多个条件
各个条件之间为and关系
curl 'localhost:9200/accounts/person
原创
2020-06-28 10:09:45 ·
211 阅读 ·
0 评论