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):
"must": [
{"term": {"is_online": True}},
{"term": {"is_deleted": False}},
{
"nested": {
"path": "related_billboard",
"query": {
"bool": {
"must": [
{
"term": {
"related_billboard.pictorial_id": pictorial_id
}
}
]
}
}
}
}
{"term": {"pictorial_id": pictorial_id}}
# {
# "nested": {
# "path": "related_billboard",
# "query": {
# "bool": {
# "must": [
# {
# "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