- 查询全部字段,按某个字段排序
GET_search
{
"query": {
"match": {"q_title": ""}
},
"sort": {"qa_show_time": {"order": "desc"}}
}
- 查询指定字段,按某个字段排序
GET /my_index_tjjcy_offline_qa_hot_common/my_doc_tjjcy_offline/_search
{
"_source": "q_title",
"query": {
"match_all": {}
},
"sort": {"qa_show_time": {"order": "desc"}}
}