OpenSearch/docs/reference/modules
Nik Everett 3a7a218e8f Support negative array ofsets in painless
Adds support for indexing into lists and arrays with negative
indexes meaning "counting from the back". So for if
`x = ["cat", "dog", "chicken"]` then `x[-1] == "chicken"`.

This adds an extra branch to every array and list access but
some performance testing makes it look like the branch predictor
successfully predicts the branch every time so there isn't a
in execution time for this feature when the index is positive.
When the index is negative performance testing showed the runtime
is the same as writing `x[x.length - 1]`, again, presumably thanks
to the branch predictor.

Those performance metrics were calculated for lists and arrays but
`def`s get roughly the same treatment though instead of inlining
the test they need to make a invoke dynamic so we don't screw up
maps.

Closes #20870
2016-10-29 16:12:40 -04:00
..
cluster Docs: Cluster Allocation Filtering 2016-10-17 11:02:33 +11:00
discovery [DOCS] clarifies master nodes to be master eligible nodes 2016-10-24 08:58:44 -04:00
indices Convert more docs to CONSOLE 2016-09-21 09:36:21 -04:00
scripting Support negative array ofsets in painless 2016-10-29 16:12:40 -04:00
cluster.asciidoc Fix typo in cluster module docs 2016-07-12 16:32:23 -04:00
discovery.asciidoc [DOCS] add azure and gce discovery plugins 2014-02-06 09:18:42 +01:00
gateway.asciidoc Update gateway.asciidoc (#19572) 2016-07-28 13:09:05 +02:00
http.asciidoc Clarifies the documentation for the `http.cors.enabled` setting (#19890) 2016-08-09 12:54:38 -05:00
indices.asciidoc Fix doc build. 2016-06-22 09:34:49 +02:00
memcached.asciidoc Fix organization rename in all files in project 2016-03-03 12:04:13 -07:00
network.asciidoc Update network.asciidoc 2016-07-08 17:13:10 +02:00
node.asciidoc Fixed typos (#20843) 2016-10-10 14:51:47 -06:00
plugins.asciidoc Docs: Prepare plugin and integration docs for 2.0 2015-08-15 18:02:43 +02:00
scripting.asciidoc Deprecate Groovy, Python, and Javascript scripts. 2016-08-30 09:06:18 -07:00
snapshots.asciidoc Docs: note about snapshot version compatibility (#20896) 2016-10-13 10:49:32 -04:00
threadpool.asciidoc Add doc note regarding processors bound 2016-10-14 10:32:31 -04:00
thrift.asciidoc Fix organization rename in all files in project 2016-03-03 12:04:13 -07:00
transport.asciidoc Remove LocalTransport in favor of MockTcpTransport (#20695) 2016-10-07 11:27:47 +02:00
tribe.asciidoc Remove custom plugins path 2016-05-26 10:16:25 -04:00