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):
num = 10 - len(pictorial_id_list)
q["query"] = {
"bool": {
"must": {
"must": [{
"terms": {
"tag_id": topic_tag_list
}}
}}, {
"term": {
"is_online": True
}
},{
"term": {
"is_deleted": False
}
}]
}
}
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