Skip to content

Commit

Permalink
[DOCS] Add script note to nested query docs (elastic#77431)
Browse files Browse the repository at this point in the history
As the script has only access to the nested document, this should be
documented.

Co-authored-by: James Rodewig <[email protected]>
  • Loading branch information
spinscale and jrodewig authored Oct 5, 2021
1 parent fdf739b commit 19d12f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/reference/query-dsl/nested-query.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ field `path`.
[[nested-query-notes]]
==== Notes

[[nested-query-script-notes]]
===== Context of script queries
If you run a <<query-dsl-script-query,`script` query>> within a nested query,
you can only access doc values from the nested document, not the parent
or root document.

[[multi-level-nested-query-ex]]
===== Multi-level nested queries

Expand Down

0 comments on commit 19d12f1

Please sign in to comment.