Skip to content

Instantly share code, notes, and snippets.

@matcouto
Created March 21, 2017 21:36
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 matcouto/a8778cb21e3d8da73e79da3b8914f23a to your computer and use it in GitHub Desktop.
Save matcouto/a8778cb21e3d8da73e79da3b8914f23a to your computer and use it in GitHub Desktop.
######### works ##########
{
"query": {
"bool": {
"must": [
{
"constant_score": {
"filter": {
"missing": {
"field": "given_name"
}
}
}
},
{
"wildcard": {
"family_name": "*hen*"
}
}
]
}
}
}
######### Doesn't work ##########
"query": {
"bool": {
"must": [
{
"constant_score": {
"filter": {
"missing": {
"field": "given_name"
}
}
}
},
{
"terms": {
"status": [
"Active"
]
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment