Skip to content

Instantly share code, notes, and snippets.

@nik9000
Last active January 18, 2016 18:20
Show Gist options
  • Save nik9000/9c8a7c8decdc93f2fd18 to your computer and use it in GitHub Desktop.
Save nik9000/9c8a7c8decdc93f2fd18 to your computer and use it in GitHub Desktop.
Example phrase queries
{
"size": 0,
"query": {
"query_string": {
"fields": ["text"],
"query": "\"deescalates forged\"",
"default_operator": "and",
"fuzziness": "0",
"phrase_slop": 0
}
}
}
{
"size": 0,
"query": {
"query_string": {
"fields": ["text"],
"query": "\"visages footballers\"",
"default_operator": "and",
"fuzziness": "0",
"phrase_slop": 0
}
}
}
{
"size": 0,
"query": {
"query_string": {
"fields": ["text"],
"query": "\"hot Lr\"",
"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