Commit 87f223e8 authored by Kai's avatar Kai

add revise attention_tag_weight

parent 98b88649
...@@ -165,7 +165,7 @@ class TopicUtils(object): ...@@ -165,7 +165,7 @@ class TopicUtils(object):
"language_type": 1 "language_type": 1
} }
}, },
"weight": 1 "weight": 60
}, },
{ {
"gauss": { "gauss": {
...@@ -174,7 +174,7 @@ class TopicUtils(object): ...@@ -174,7 +174,7 @@ class TopicUtils(object):
"decay": 0.99 "decay": 0.99
} }
}, },
"weight": 1 "weight": 60
} }
] ]
...@@ -221,7 +221,7 @@ class TopicUtils(object): ...@@ -221,7 +221,7 @@ class TopicUtils(object):
{ {
"filter": {"bool": { "filter": {"bool": {
"should": {"terms": {"tag_list": attention_tag_list}}}}, "should": {"terms": {"tag_list": attention_tag_list}}}},
"weight": 100 "weight": 1000
} }
) )
# if len(recommend_tag_list)>0: # if len(recommend_tag_list)>0:
......
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