Skip to content

Instantly share code, notes, and snippets.

@eeeebbbbrrrr
Created December 18, 2014 17:12
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 eeeebbbbrrrr/d0491882248160e9afeb to your computer and use it in GitHub Desktop.
Save eeeebbbbrrrr/d0491882248160e9afeb to your computer and use it in GitHub Desktop.
{ "query": {
"filtered" : {
"query" : {
"match_all" : { }
},
"filter" : {
"and" : {
"filters" : [ {
"or" : {
"filters" : [ {
"and" : {
"filters" : [ {
"term" : {
"_xmin" : 12554720
}
}, {
"range" : {
"_cmin" : {
"from" : null,
"to" : 0,
"include_lower" : true,
"include_upper" : false
}
}
}, {
"or" : {
"filters" : [ {
"term" : {
"_xmax" : 0
}
}, {
"and" : {
"filters" : [ {
"term" : {
"_xmax" : 12554720
}
}, {
"range" : {
"_cmax" : {
"from" : 0,
"to" : null,
"include_lower" : true,
"include_upper" : true
}
}
} ]
}
} ]
}
} ]
}
}, {
"and" : {
"filters" : [ {
"term" : {
"_xmin_is_committed" : true
}
}, {
"or" : {
"filters" : [ {
"term" : {
"_xmax" : 0
}
}, {
"and" : {
"filters" : [ {
"term" : {
"_xmax" : 12554720
}
}, {
"range" : {
"_cmax" : {
"from" : 0,
"to" : null,
"include_lower" : true,
"include_upper" : true
}
}
} ]
}
}, {
"and" : {
"filters" : [ {
"not" : {
"filter" : {
"term" : {
"_xmax" : 12554720
}
}
}
}, {
"term" : {
"_xmax_is_committed" : false
}
} ]
}
} ]
}
} ]
}
} ]
}
}, {
"has_child" : {
"filter" : {
"or" : {
"filters" : [ {
"term" : {
"_all" : "beer"
}
}, {
"term" : {
"fulltext" : "beer"
}
} ]
}
},
"child_type" : "data"
}
} ]
}
}
}
} }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment