Skip to content

Instantly share code, notes, and snippets.

@nickdunn
Created February 19, 2012 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickdunn/1864764 to your computer and use it in GitHub Desktop.
Save nickdunn/1864764 to your computer and use it in GitHub Desktop.
{
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"
}
}
]
}
}
}
@cz
Copy link

cz commented Feb 19, 2012

Search nerd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment