Commit a298c7b8 authored by lixiaofang's avatar lixiaofang

修改query

parent e700a4e7
...@@ -254,22 +254,23 @@ def pictorial_topic_sort(pictorial_id=-1, offset=0, size=10): ...@@ -254,22 +254,23 @@ def pictorial_topic_sort(pictorial_id=-1, offset=0, size=10):
"must": [ "must": [
{"term": {"is_online": True}}, {"term": {"is_online": True}},
{"term": {"is_deleted": False}}, {"term": {"is_deleted": False}},
{ {"term": {"pictorial_id": pictorial_id}}
"nested": { # {
"path": "related_billboard", # "nested": {
"query": { # "path": "related_billboard",
"bool": { # "query": {
"must": [ # "bool": {
{ # "must": [
"term": { # {
"related_billboard.pictorial_id": pictorial_id # "term": {
} # "related_billboard.pictorial_id": pictorial_id
} # }
] # }
} # ]
} # }
} # }
} # }
# }
] ]
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment