Skip to content

Instantly share code, notes, and snippets.

@telvis07
Last active August 29, 2015 13:56
Show Gist options
  • Save telvis07/9090254 to your computer and use it in GitHub Desktop.
Save telvis07/9090254 to your computer and use it in GitHub Desktop.
{
"facets": {
"terms": {
"facet_filter": {
"fquery": {
"query": {
"filtered": {
"filter": {
"bool": {
"must": [
{
"match_all": {}
}
]
}
},
"query": {
"bool": {
"should": [
{
"query_string": {
"query": "@joelosteen"
}
}
]
}
}
}
}
}
},
"terms": {
"exclude": [],
"field": "habakkuk.book",
"order": "count",
"size": 15
}
}
},
"size": 0
}
{
"query": {
"match_all": {}
},
"facets": {
"bibleverse": {
"facet_filter": {
"query": {
"bool": {
"minimum_number_should_match": 1,
"should": [
{
"match": {
"text": {
"operator": "or",
"query": "@joelosteen",
"type": "boolean"
}
}
}
]
}
}
},
"terms": {
"field": "bibleverse",
"order": "count",
"size": 10
}
}
},
"size": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment