Browse Source

Add note that scripted fields will reject documents with a source value in their field (#71340)

Alan Woodward 4 years ago
parent
commit
98c9a95e12
1 changed files with 3 additions and 1 deletions
  1. 3 1
      docs/reference/mapping/types/numeric.asciidoc

+ 3 - 1
docs/reference/mapping/types/numeric.asciidoc

@@ -156,7 +156,9 @@ The following parameters are accepted by numeric types:
 
     If this parameter is set, then the field will index values generated
     by this script, rather than reading the values directly from the
-    source. Scripts are in the same format as their
+    source. If a value is set for this field on the input document, then
+    the document will be rejected with an error.
+    Scripts are in the same format as their
     <<runtime-mapping-fields,runtime equivalent>>. Scripts can only be
     configured on `long` and `double` field types.