Closed tainmar closed 7 years ago
This query should pick random documents in ES :
{ "query": { "function_score": { "query": { "match_all": {} }, "functions": [ { "random_score": {} } ] } } }
https://www.elastic.co/guide/en/elasticsearch/guide/current/random-scoring.html
This query should pick random documents in ES :