Add migration info for missing values in script

Relates to #30975
This commit is contained in:
Mayya Sharipova 2018-10-03 11:56:18 -04:00
parent 3c1fdc9fc0
commit 8f10c771e6
1 changed files with 9 additions and 0 deletions

View File

@ -14,6 +14,15 @@ now been removed. Instead, use `.value` on `date` fields, or explicitly
parse `long` fields into a date object using parse `long` fields into a date object using
`Instance.ofEpochMillis(doc["myfield"].value)`. `Instance.ofEpochMillis(doc["myfield"].value)`.
[float]
==== Accessing missing document values will throw an error
`doc['field'].value` will throw an exception if
the document is missing a value for the field `field`.
To check if a document is missing a value, you can use
`doc['field'].size() == 0`.
[float] [float]
==== Script errors will return as `400` error codes ==== Script errors will return as `400` error codes