Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"query": {
"filtered": {
"filter": {
"or": [
{
"and": [
{
"type": {
"value": "article"
}
},
{
"and": [
{
"term": {
"hidden": false
}
},
{
"range": {
"date": {
"from": {
"from": "2011-09-18T11:04:52",
"gte": true
}
}
}
}
]
}
]
},
{
"type": {
"value": "page"
}
},
{
"type": {
"value": "article"
}
},
{
"type": {
"value": "blog_entry"
}
},
{
"type": {
"value": "post"
}
}
]
},
"query": {
"dis_max": {
"queries": [
{
"query_string": {
"query": "Eu imperdiet",
"default_operator": "AND"
}
},
{
"field": {
"title": "Eu imperdiet"
}
}
]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment