diff --git a/dags/business/business/community/avg_cost.py b/dags/business/business/community/avg_cost.py index 316d15f..e8c4588 100644 --- a/dags/business/business/community/avg_cost.py +++ b/dags/business/business/community/avg_cost.py @@ -26,16 +26,29 @@ def find_around_price(lng, lat): ret_es = es206_client.elastic_client.search({ "query": { "bool": { - "must": [ - { + "filter": [ + { "term": { "status": { "value": 0 } } - } - ], - "filter": [ + }, + { + "range": { + "price": { + "gt": 0 + } + } + }, + { + "terms": { + "tag": [ + "美食;中餐厅", + "美食;外国餐厅" + ] + } + }, { "geo_distance": { "distance": 1000,