OpenSearch/docs/painless
Stuart Tettemer 41c15b438d
Scripting: Add char position of script errors (#51069) (#51266)
Add the character position of a scripting error to error responses.

The contents of the `position` field are experimental and subject to
change.  Currently, `offset` refers to the character location where the
error was encountered, `start` and `end` define a range of characters
that contain the error.

eg.
```
{
  "error": {
    "root_cause": [
      {
        "type": "script_exception",
        "reason": "runtime error",
        "script_stack": [
          "y = x;",
          "     ^---- HERE"
        ],
        "script": "def x = new ArrayList(); Map y = x;",
        "lang": "painless",
        "position": {
          "offset": 33,
          "start": 29,
          "end": 35
        }
      }
```

Refs: #50993
2020-01-21 13:45:59 -07:00
..
painless-api-reference Update the signature of vector script functions. (#48653) 2019-10-29 15:46:05 -07:00
painless-contexts [DOCS] Fixed typos (_op => op) in Painless context docs (#50301) 2020-01-08 10:54:06 -06:00
painless-guide Scripting: Add char position of script errors (#51069) (#51266) 2020-01-21 13:45:59 -07:00
painless-lang-spec [DOCS] Correct Painless operator typos (#50472) 2019-12-30 08:48:32 -05:00
index.asciidoc Reorganize Painless doc structure (#42303) 2019-05-21 10:50:21 -07:00
painless-api-reference.asciidoc Task to generate Painless API's per context (#41233) 2019-04-23 11:28:27 -07:00
painless-contexts.asciidoc [DOCS] Moves Watcher content into Elasticsearch book (#47147) (#47255) 2019-09-30 10:18:50 -07:00
painless-guide.asciidoc Reorganize Painless doc structure (#42303) 2019-05-21 10:50:21 -07:00
painless-lang-spec.asciidoc Reorganize Painless doc structure (#42303) 2019-05-21 10:50:21 -07:00
redirects.asciidoc [DOCS] Add redirect for painless examples anchor 2019-06-25 12:34:18 -04:00