1.查询全部
GET table/_search
{
"query": {
"match_all": {
}
}
}
2.查询字段
GET table/_search
{
"query": {
"match_phrase": {
"album_name":"不一样的卡梅拉"
}
}
}
3.排序
降序:
GET table/_search
{"sort": [{"play_count":"desc"}]
,
"query": {
"match_phrase": {
"album_name":"不一样的卡梅拉"
}
}
}
升序:
GET table/_search
{
"sort": [{"play_count":"asc"}]
,
"query": {
"match_phrase": {
"album_name":"不一样的卡梅拉"
}
}
}