Skip to content

Instantly share code, notes, and snippets.

@jwg2s

jwg2s/query.rb Secret

Last active July 27, 2016 13:31
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 jwg2s/dd670604addfa6eae7852eb929b82fd2 to your computer and use it in GitHub Desktop.
Save jwg2s/dd670604addfa6eae7852eb929b82fd2 to your computer and use it in GitHub Desktop.
{
"from" => 0,
"size" => 5000,
"query" => {
"bool" => {
"must" => [
{ "term" => { "team_id" => "7" } },
{ "bool" => {
"should" => [
{
"has_child" => {
"type" => "custom_field_value",
"query" => {
"bool" => {
"must" => [
{ "term" => { "custom_field_id" => "1" } },
{ "match_phrase" => { "analyzed_value" => "virginia" } }
]
}
}
}
}
]
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment