Skip to content

Instantly share code, notes, and snippets.

@thesurlydev
Created November 16, 2011 19:58
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 thesurlydev/1371153 to your computer and use it in GitHub Desktop.
Save thesurlydev/1371153 to your computer and use it in GitHub Desktop.
ES query failure
{
"from": 0,
"size": 50,
"query": {
"filtered": {
"query": {
"bool": {
"must": {
"match_all": {}
}
}
},
"filter": {
"or": {
"filters": [
{
"term": {
"meta.readAccessAccountID": 203
}
},
{
"script": {
"script": "(doc['meta.readAccessGroupAccessBit'].intValue & accessBit) > 0",
"params": {
"accessBit": 268959815
}
}
}
]
}
}
}
},
"sort": [
{
"owner.username": {
"order": "desc"
}
}
],
"highlight": {
"pre_tags": [
"<span class=\"srhlight\">"
],
"post_tags": [
"</span>"
],
"fields": {
"subject": {
"fragment_size": 100,
"number_of_fragments": 1
},
"message": {
"fragment_size": 100,
"number_of_fragments": 1
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment