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):
"weight": 1000
},
{
"gauss": {
"update_time": {
"linear": {
"create_time": {
"scale": "1d",
"decay": 0.5
}
......@@ -370,7 +370,9 @@ class TopicUtils(object):
"query":{
"bool":{
"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":{
"term":{
......@@ -456,8 +458,8 @@ class TopicUtils(object):
functions_list = [
{
"gauss": {
"update_time": {
"linear": {
"create_time": {
"scale": "1d",
"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