Skip to content

Instantly share code, notes, and snippets.

@EnTeQuAk
Created September 18, 2011 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EnTeQuAk/1224989 to your computer and use it in GitHub Desktop.
Save EnTeQuAk/1224989 to your computer and use it in GitHub Desktop.
{
"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