Sort results by date
This commit is contained in:
parent
ddae8ef42e
commit
b5ff784a0e
|
@ -54,6 +54,13 @@ def construct_query(query, fields, size):
|
|||
"auto_generate_synonyms_phrase_query": True,
|
||||
}
|
||||
},
|
||||
"sort": [
|
||||
{
|
||||
"ts": {
|
||||
"order": "desc",
|
||||
}
|
||||
}
|
||||
],
|
||||
}
|
||||
return query
|
||||
|
||||
|
|
Loading…
Reference in New Issue