Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "query": {
- "bool": {
- "must": [
- {
- "bool": {
- "should": [
- {
- "terms": {
- "search_field": [
- "search_key"
- ]
- }
- }
- ]
- }
- },
- "nested": {
- "path": "defined_path", //defined path is mapped nested
- "query": {
- "bool": {
- "must": [
- {
- "exists": {
- "field": "defined_path.some_field"
- }
- }
- ]
- }
- }
- }
- ]
- }
- }
- }
Add Comment
Please, Sign In to add comment