优化人均消费bug

This commit is contained in:
shenjian@fangjia.com
2023-03-06 15:46:03 +08:00
parent b00f3a67a1
commit f746d854c7
+18 -5
View File
@@ -26,16 +26,29 @@ def find_around_price(lng, lat):
ret_es = es206_client.elastic_client.search({ ret_es = es206_client.elastic_client.search({
"query": { "query": {
"bool": { "bool": {
"must": [ "filter": [
{ {
"term": { "term": {
"status": { "status": {
"value": 0 "value": 0
} }
} }
} },
], {
"filter": [ "range": {
"price": {
"gt": 0
}
}
},
{
"terms": {
"tag": [
"美食;中餐厅",
"美食;外国餐厅"
]
}
},
{ {
"geo_distance": { "geo_distance": {
"distance": 1000, "distance": 1000,