Skip to content

Instantly share code, notes, and snippets.

@jaydanielian
Created February 12, 2015 21:41
Show Gist options
  • Save jaydanielian/c2be885987f344031cfc to your computer and use it in GitHub Desktop.
Save jaydanielian/c2be885987f344031cfc to your computer and use it in GitHub Desktop.
sample query
POST /current_batch/_search
{"size":10,"query":{"constant_score":{"filter":{"and":[{"or":[{"nested":{"path":"indexed_entity.terms.emails","filter":{"bool":{"must":{"terms":{"ev":["jjones@acme.com"]}}}}}}]},{"nested":{"path":"indexed_entity.terms.names","filter":{"bool":{"must":{"terms":{"last_name":["jones"]}}}}}}]}}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment