Skip to content

Commit c221206

Browse files
jrodewigspinscale
andauthored
[DOCS] Add script note to nested query docs (#77431) (#78701)
As the script has only access to the nested document, this should be documented. Co-authored-by: James Rodewig <[email protected]> Co-authored-by: Alexander Reelsen <[email protected]>
1 parent 621b015 commit c221206

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/reference/query-dsl/nested-query.asciidoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ field `path`.
121121
[[nested-query-notes]]
122122
==== Notes
123123

124+
[[nested-query-script-notes]]
125+
===== Context of script queries
126+
If you run a <<query-dsl-script-query,`script` query>> within a nested query,
127+
you can only access doc values from the nested document, not the parent
128+
or root document.
129+
124130
[[multi-level-nested-query-ex]]
125131
===== Multi-level nested queries
126132

0 commit comments

Comments
 (0)