Commit b81ec78c authored by 段英荣's avatar 段英荣

modify bug

parent 5fe1c339
...@@ -137,10 +137,10 @@ class TopicUtils(object): ...@@ -137,10 +137,10 @@ class TopicUtils(object):
"gauss": { "gauss": {
"create_time": { "create_time": {
"scale": "1d", "scale": "1d",
"decay": 0.999 "decay": 0.99
} }
}, },
"weight": 5 "weight": 500
} }
# { # {
# "gauss": { # "gauss": {
......
...@@ -25,6 +25,7 @@ from trans2es.models.tag import TopicTag,Tag ...@@ -25,6 +25,7 @@ from trans2es.models.tag import TopicTag,Tag
from trans2es.models.user_extra import UserExtra from trans2es.models.user_extra import UserExtra
from trans2es.models.group import Group from trans2es.models.group import Group
from trans2es.models.topic import Topic,ActionSumAboutTopic from trans2es.models.topic import Topic,ActionSumAboutTopic
from search.utils.common import *
class Job(object): class Job(object):
...@@ -127,7 +128,7 @@ class Command(BaseCommand): ...@@ -127,7 +128,7 @@ class Command(BaseCommand):
def generate_topic_score_detail(self): def generate_topic_score_detail(self):
try: try:
topic_id_dict = TopicUtils.get_recommend_topic_ids(-1, 0, 500,test_score=True) topic_id_dict = TopicUtils.get_recommend_topic_ids(241432787, 0, 500,query_type=TopicPageType.HOME_RECOMMEND,test_score=True)
for topic_id in topic_id_dict: for topic_id in topic_id_dict:
offline_score = 0.0 offline_score = 0.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