Commit 58fda511 by 岳巧源

delete special character

parent 8a77d06e
Showing with 2 additions and 1 deletions
......@@ -96,7 +96,8 @@ def main():
for j in range(len(ans[i])):
tmp_goods_name = ans[i][j]
tmp_query = query
tmp_query["query"]["bool"]["must"][0]["match"]["goods_name"] = tmp_goods_name
new_str = tmp_goods_name.replace('/', '').replace('-', '')
tmp_query["query"]["bool"]["must"][0]["match"]["goods_name"] = new_str
tmp_map = process(tmp_query, tmp_goods_name)
if len(tmp_map) != 0:
score_in_one_row.append(tmp_map)
......
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 sign in to comment