Skip to content

Instantly share code, notes, and snippets.

@bryangreen
Created May 25, 2012 21:36
Show Gist options
  • Save bryangreen/2790748 to your computer and use it in GitHub Desktop.
Save bryangreen/2790748 to your computer and use it in GitHub Desktop.
When using the "and" filter, "fields" not being recognized and all _source being returned.
{
"from": 0,
"size": 999,
"filter": {
"and": [
{
"term": {
"user_role_permission": "administrator"
}
}
],
"_cache": true
},
"fields": "value"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment