Created
February 19, 2012 17:36
-
-
Save nickdunn/1864764 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
{ | |
query: { | |
bool: { | |
must: [ | |
{ | |
query_string: { | |
default_field: "_all", | |
query: "\"lord of the rings\"" | |
} | |
}, | |
{ | |
query_string: { | |
default_field: "_all", | |
query: "tolkien" | |
} | |
} | |
], | |
must_not: [ | |
{ | |
query_string: { | |
default_field: "_all", | |
query: "hobbit" | |
} | |
} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Search nerd.