elasticsearch/docs/reference
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
..
aggregations Update scripted-metric-aggregation.asciidoc 2016-10-17 19:31:30 +02:00
analysis Fixed typos (#20843) 2016-10-10 14:51:47 -06:00
cat Convert more docs to // CONSOLE 2016-10-25 11:17:24 -04:00
cluster Makes search action cancelable by task management API 2016-10-25 12:27:34 -10:00
docs Add "simple match" support for reindex-from-remote whitelist 2016-10-18 21:47:21 -04:00
how-to Add support for quote_field_suffix to simple_query_string. (#21060) 2016-10-28 09:11:57 +02:00
images Docs: clarify calculation of sigma and lambda in function_score (#20267) 2016-09-02 14:41:07 +02:00
index-modules Fix slowlog docs 2016-10-17 10:50:32 -04:00
indices Merge pull request #20704 from johtani/remove_request_params_in_analyze_api 2016-10-27 17:43:18 +09:00
ingest make painless the default scripting language for ScriptProcessor (#20981) 2016-10-18 16:22:01 -07:00
mapping Merge pull request #20704 from johtani/remove_request_params_in_analyze_api 2016-10-27 17:43:18 +09:00
migration Merge pull request #20704 from johtani/remove_request_params_in_analyze_api 2016-10-27 17:43:18 +09:00
modules Support negative array ofsets in painless 2016-10-29 16:12:40 -04:00
query-dsl Add support for quote_field_suffix to simple_query_string. (#21060) 2016-10-28 09:11:57 +02:00
search Makes search action cancelable by task management API 2016-10-25 12:27:34 -10:00
setup Add note about retention periods to reindex-upgrade docs 2016-10-13 12:13:55 +02:00
testing Fixed typos (#20843) 2016-10-10 14:51:47 -06:00
aggregations.asciidoc CONSOLEify some aggs docs 2016-10-03 09:22:56 -04:00
analysis.asciidoc First pass at improving analyzer docs (#18269) 2016-05-11 14:17:56 +02:00
api-conventions.asciidoc [DOCS] Add "version" to template and pipeline docs (#20407) 2016-10-18 11:56:18 -04:00
cat.asciidoc Adding built-in sorting capability to _cat apis. (#20658) 2016-10-11 12:29:22 -04:00
cluster.asciidoc Convert more docs to CONSOLE 2016-09-21 09:36:21 -04:00
docs.asciidoc Add support for waiting until a refresh occurs 2016-06-06 11:37:53 -04:00
getting-started.asciidoc [DOCS] Fix typo in "Cluster Health" part (#20864) 2016-10-11 13:53:11 -04:00
glossary.asciidoc Improve glossary to not refer to types as "like a table" (#17704) 2016-04-13 14:29:47 +02:00
how-to.asciidoc Add support for quote_field_suffix to simple_query_string. (#21060) 2016-10-28 09:11:57 +02:00
index-modules.asciidoc Add a hard limit for index.number_of_shard (#20682) 2016-09-29 11:03:30 +02:00
index.asciidoc Fix Lucene version in the docs. 2016-10-28 14:50:46 +02:00
indices.asciidoc Removed the upgrade API docs 2016-10-11 12:21:46 +02:00
ingest.asciidoc Renamed all AUTOSENSE snippets to CONSOLE (#18210) 2016-05-09 15:42:23 +02:00
mapping.asciidoc Reorganised docs for mapping safeguard settings 2016-09-22 14:58:17 +02:00
modules.asciidoc refactor matrix agg documentation from modules to main agg section 2016-06-06 07:39:00 -05:00
query-dsl.asciidoc Fixed broken xrefs to query-dsl-not-query, which has been removed. 2015-10-20 13:01:37 -07:00
redirects.asciidoc Add an indices-upgrade section to the docs redirects. 2016-10-11 12:39:02 +02:00
release-notes.asciidoc Remove links to release notes 2016-09-08 18:07:39 +02:00
search.asciidoc Makes search action cancelable by task management API 2016-10-25 12:27:34 -10:00
setup.asciidoc Die with dignity 2016-07-07 14:44:03 -04:00
testing.asciidoc [DOCS] Test framework documentation 2013-12-02 18:01:45 +01:00