curl -XPOST 'localhost:9200/_search?pretty' -H 'Content-Type: application/json' -d'
{
"query": {
"bool" : {
"must" : {
"term" : { "choice" : "B" }
},
"must" : {
"term" : { "choice" : "C" }
},
"must" : {
"script" : {
"script" : {
"inline" : "doc[\"choice\"].length == 2",
"lang" : "painless"
}
}
}
}
}
}
'
Last active
July 23, 2017 17:23
-
-
Save kuy/f374809343f5fe7a2f4552713ba2be70 to your computer and use it in GitHub Desktop.
Script2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment