⑦. 范围查询range
# 价格区间的过滤 GET sku5/_search { "query": { "range": { "price": { "gte": 1000, "lte": 2000 } } } }
⑧. 排序sort
GET sku5/_search { "sort": [ { "price": { "order": "desc" } } ] } GET sku5/_search { "sort": [ { "price": { "order": "asc" } } ] }
⑨. 高亮显示
"query":{ "highlight": { "fields":{"skuTitle":{}}, "pre_tags": "<b style='color:red'>", "post_tags": "</b>" } }