Commit 21027253 authored by 桂秋月's avatar 桂秋月

1

parent a3694992
......@@ -40,9 +40,10 @@ def searchTopic(content):
similar_query_word=similar_df['hot_query_similar'].to_list() if not similar_df.empty else []
similar_temp+=similar_query_word
print("相似热词结果:",similar_temp)
print("底纹词,",diwenci_result)
##sku+query
if not result_skus:
print("底纹词,",diwenci_result)
##如果搜索没有商品数,则结果=相似搜索词+底纹词,并去重
return removeRepeat(similar_temp+diwenci_result[:3])
......@@ -65,7 +66,11 @@ def searchTopic(content):
##从sku的query结果中,去掉相似query,然后2边交叉排序
sku_match_temp_remove_from_similar=bingji(sku_match_temp,similar_temp)
##因为随机取不好弄,所以拿到所有数据交叉的
return listCross(similar_temp,sku_match_temp_remove_from_similar)
ttemp=listCross(similar_temp,sku_match_temp_remove_from_similar)
if len(ttemp)<8:
return removeRepeat(ttemp+diwenci_result)[:8]
return ttemp
......
......@@ -28,4 +28,4 @@ def modifyPasseord(name,namespace):
print("this is update")
if __name__ == '__main__':
modifyPasseord('haiyuan.wen','test1')
\ No newline at end of file
modifyPasseord('haiyuan.wen','vcc2')
\ No newline at end of file
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