Skip to content

Instantly share code, notes, and snippets.

@clintongormley
Created January 9, 2012 16:45
Show Gist options
  • Save clintongormley/0d3b377fec9e2e9c333a to your computer and use it in GitHub Desktop.
Save clintongormley/0d3b377fec9e2e9c333a to your computer and use it in GitHub Desktop.
curl -XGET 'http://127.0.0.1:9200/_all/_search?pretty=1' -d '
{
"query" : {
"filtered" : {
"filter" : {
"and" : [
{
"or" : [
{
"terms" : {
"readAccessGroupAccessBits" : [
"1",
2,
4,
64,
524288
]
}
},
{
"term" : {
"readAccessAccounts" : 203
}
}
]
},
{
"not" : {
"filter" : {
"term" : {
"category.categoryTypeID" : 105
}
}
}
}
]
},
"query" : {
"query_string" : {
"fields" : [
"message^1",
"subject^3"
],
"query" : "jboss ssl install",
"analyzer" : "snowball"
}
}
}
}
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment