Created
December 18, 2014 17:12
-
-
Save eeeebbbbrrrr/d0491882248160e9afeb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "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