更新时间:2022-08-19 08:01:24
# 价格区间的过滤 GET sku5/_search { "query": { "range": { "price": { "gte": 1000, "lte": 2000 } } } }
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>" } }