Skip to content

Instantly share code, notes, and snippets.

@nik9000
Created January 18, 2016 18:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nik9000/942047d2465981e63cf3 to your computer and use it in GitHub Desktop.
Example OR queries
{
"size": 0,
"query": {
"query_string": {
"fields": ["text"],
"query": "transgression Scotsman",
"default_operator": "or",
"fuzziness": "0",
"phrase_slop": 0
}
}
}
{
"size": 0,
"query": {
"query_string": {
"fields": ["text"],
"query": "laryngitis build",
"default_operator": "or",
"fuzziness": "0",
"phrase_slop": 0
}
}
}
{
"size": 0,
"query": {
"query_string": {
"fields": ["text"],
"query": "premeditates upperclassmen",
"default_operator": "or",
"fuzziness": "0",
"phrase_slop": 0
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment