Commit 044bc51b authored by 段英荣's avatar 段英荣

Merge branch 'similar_sort' into 'master'

modify bug

See merge request !145
parents f964aa00 ccbcbd7f
...@@ -348,8 +348,8 @@ class TopicUtils(object): ...@@ -348,8 +348,8 @@ class TopicUtils(object):
"weight": 1000 "weight": 1000
}, },
{ {
"gauss": { "linear": {
"update_time": { "create_time": {
"scale": "1d", "scale": "1d",
"decay": 0.5 "decay": 0.5
} }
...@@ -370,7 +370,9 @@ class TopicUtils(object): ...@@ -370,7 +370,9 @@ class TopicUtils(object):
"query":{ "query":{
"bool":{ "bool":{
"must": [ "must": [
{"range": {"content_level": {"gte": 3, "lte": 5}}} {"range": {"content_level": {"gte": 3, "lte": 5}}},
{"term": {"is_online": True}},
{"term": {"is_deleted": False}}
], ],
"must_not":{ "must_not":{
"term":{ "term":{
...@@ -456,8 +458,8 @@ class TopicUtils(object): ...@@ -456,8 +458,8 @@ class TopicUtils(object):
functions_list = [ functions_list = [
{ {
"gauss": { "linear": {
"update_time": { "create_time": {
"scale": "1d", "scale": "1d",
"decay": 0.5 "decay": 0.5
} }
......
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