Created
September 21, 2016 01:49
-
-
Save xeraa/d06f834b2ec098583de1a5ef9110712a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET /raffle/_search | |
{ | |
"size": 1, | |
"query": { | |
"function_score": { | |
"functions": [ | |
{ | |
"random_score": { } | |
} | |
], | |
"score_mode": "sum" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In 6.4.0, make sure to run a forcemerge to have only one segment when you have few documents.
Example: