Commit 9f69136b authored by 段英荣's avatar 段英荣

modify

parent 7237daaa
......@@ -342,9 +342,9 @@ class TopicUtils(object):
analyze_res = ESPerform.get_analyze_results(es_cli=ESPerform.get_cli(), sub_index_name="topic",query_body=body)
for item in analyze_res["tokens"]:
token_word = item["token"]
is_member = redis_client.sismember(collection_redis_key_name, token_word)
if is_member:
collect_tag_name_set.add(token_word)
# is_member = redis_client.sismember(collection_redis_key_name, token_word)
# if is_member:
collect_tag_name_set.add(token_word)
query_fields = ["content", "tag_name_list"]
multi_match = {
......@@ -386,7 +386,7 @@ class TopicUtils(object):
field_item: query_item
}
},
"weight": 5
"weight": 2
}
functions_list.append(term_dict)
......
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