优化人均消费bug
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user