Skip to content

Instantly share code, notes, and snippets.

@simong
Created June 24, 2013 13:02
Show Gist options
  • Select an option

  • Save simong/5849876 to your computer and use it in GitHub Desktop.

Select an option

Save simong/5849876 to your computer and use it in GitHub Desktop.
"filter": {
"and": [
{
"and": [
{
"term": {
"_type": "resource"
}
},
{
"terms": {
"resourceType": [
"user"
]
}
}
]
},
{
"or": [
{
"and": [
{
"or": [
{
"and": [
{
"term": {
"visibility": "public"
}
},
{
"or": [
{
"term": {
"tenantAlias": "public-PeMZgn9JzNJ"
}
},
{
"terms": {
"tenantAlias": [
"admin",
"camtest",
"gttest",
"localhost",
"public-PeMZgn9JzNJ",
"public1-PeMZgn9JzNJ"
]
}
}
]
}
]
},
{
"and": [
{
"or": [
{
"term": {
"tenantAlias": "public-PeMZgn9JzNJ"
}
},
{
"terms": {
"tenantAlias": [
"admin",
"camtest",
"gttest",
"localhost",
"public-PeMZgn9JzNJ",
"public1-PeMZgn9JzNJ"
]
}
}
]
},
{
"terms": {
"joinable": [
"yes",
"request"
]
}
}
]
},
{
"and": [
{
"term": {
"tenantAlias": "public-PeMZgn9JzNJ"
}
},
{
"term": {
"visibility": "loggedin"
}
}
]
}
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment