Commit 2c6284cc authored by lixiaofang's avatar lixiaofang

add a term

parent f6fcb680
...@@ -162,10 +162,18 @@ def pictorial_topic(topic_id=-1, offset=0, size=10): ...@@ -162,10 +162,18 @@ def pictorial_topic(topic_id=-1, offset=0, size=10):
num = 10 - len(pictorial_id_list) num = 10 - len(pictorial_id_list)
q["query"] = { q["query"] = {
"bool": { "bool": {
"must": { "must": [{
"terms": { "terms": {
"tag_id": topic_tag_list "tag_id": topic_tag_list
}} }}, {
"term": {
"is_online": True
}
},{
"term": {
"is_deleted": False
}
}]
} }
} }
q["_source"] = { q["_source"] = {
......
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