Commit e7a903b5 authored by lixiaofang's avatar lixiaofang

Merge branch 'test' of git.wanmeizhensuo.com:alpha/physical into test

parents a588d1c0 78f5f9e6
...@@ -165,6 +165,8 @@ def identity_tag_name(topic_content): ...@@ -165,6 +165,8 @@ def identity_tag_name(topic_content):
cli_info = settings.TAG_ES_INFO_LIST cli_info = settings.TAG_ES_INFO_LIST
res = ESPerform.get_analyze_results(es_cli=ESPerform.get_cli(cli_info=cli_info), sub_index_name="tag", query_body=body) res = ESPerform.get_analyze_results(es_cli=ESPerform.get_cli(cli_info=cli_info), sub_index_name="tag", query_body=body)
logging.info("duan add,res:%s" % str(res).encode("utf-8"))
for item in res["tokens"]: for item in res["tokens"]:
token_word = item["token"] token_word = item["token"]
is_member = redis_client.sismember(redis_key_name, token_word) is_member = redis_client.sismember(redis_key_name, token_word)
......
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