Created
January 18, 2016 18:17
-
-
Save nik9000/1726ed9bbb720d4b03e3 to your computer and use it in GitHub Desktop.
Example prefix queries
This file contains 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
{ | |
"size": 0, | |
"query": { | |
"query_string": { | |
"fields": ["text"], | |
"query": "tri* puz*", | |
"default_operator": "and", | |
"fuzziness": "0", | |
"phrase_slop": 0 | |
} | |
} | |
} | |
{ | |
"size": 0, | |
"query": { | |
"query_string": { | |
"fields": ["text"], | |
"query": "wha* str*", | |
"default_operator": "and", | |
"fuzziness": "0", | |
"phrase_slop": 0 | |
} | |
} | |
} | |
{ | |
"size": 0, | |
"query": { | |
"query_string": { | |
"fields": ["text"], | |
"query": "sig* tra*", | |
"default_operator": "and", | |
"fuzziness": "0", | |
"phrase_slop": 0 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment