Commit 9d6513d9 authored by lixiaofang's avatar lixiaofang

add

parent 50890ac3
......@@ -149,7 +149,7 @@ def pictorial_topic(topic_id=-1, offset=0, size=10):
"is_delete": False
},
"terms": {
"tag_id": topic_tag_list
"tag_id": [211302,195275,195246, 317175, 274332,96, 345697, 336486,473577,336051,847034,482012]#topic_tag_list
}
}
}
......@@ -164,6 +164,9 @@ def pictorial_topic(topic_id=-1, offset=0, size=10):
}
}
q["form"]=0
q["size"] =10
result_dict = ESPerform.get_search_results(es_cli_obj, "pictorial", q, offset, size)
if len(result_dict["hits"]) > 0:
pictorial_id_list.append(item["_source"]["id"] for item in result_dict["hits"]) #
......
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