Skip to content

Instantly share code, notes, and snippets.

@dyangrev
Created March 5, 2014 21:52
Show Gist options
  • Save dyangrev/9377396 to your computer and use it in GitHub Desktop.
Save dyangrev/9377396 to your computer and use it in GitHub Desktop.
{
"query": {
"constant_score": {
"filter": {
"or": [
{
"has_child": {
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"and": [
{
"term": {
"propertyId": 360
}
}
]
}
}
},
"type": "guest_event_stay"
}
},
{
"has_child": {
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"and": [
{
"term": {
"test": 1
}
}
]
}
}
},
"type": "guest"
}
}
]
}
}
},
"facets" : {
"test_facet": {
"terms": {
"field": "giid"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment