Created
December 21, 2023 20:21
-
-
Save julie-mills/5294fe30138132d6528be0f1ae45f07f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET /posts/_search | |
{ | |
"query": { | |
"bool": { | |
"must": [ | |
{ "match": { "title": "Exploring Elasticsearch Models" } } | |
] | |
} | |
}, | |
"inner_hits": { | |
"_source": ["text"], | |
"name": "comments", | |
"path": "comments" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment