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