OpenSearch/docs/reference
Jason Tedor 51d53791fe Remove lenient URL parameter parsing
Today when parsing a request, Elasticsearch silently ignores incorrect
(including parameters with typos) or unused parameters. This is bad as
it leads to requests having unintended behavior (e.g., if a user hits
the _analyze API and misspell the "tokenizer" then Elasticsearch will
just use the standard analyzer, completely against intentions).

This commit removes lenient URL parameter parsing. The strategy is
simple: when a request is handled and a parameter is touched, we mark it
as such. Before the request is actually executed, we check to ensure
that all parameters have been consumed. If there are remaining
parameters yet to be consumed, we fail the request with a list of the
unconsumed parameters. An exception has to be made for parameters that
format the response (as opposed to controlling the request); for this
case, handlers are able to provide a list of parameters that should be
excluded from tripping the unconsumed parameters check because those
parameters will be used in formatting the response.

Additionally, some inconsistencies between the parameters in the code
and in the docs are corrected.

Relates #20722
2016-10-04 12:45:29 -04:00
..
aggregations CONSOLEify some aggs docs 2016-10-03 09:22:56 -04:00
analysis Fix minhash docs level 2016-09-19 07:54:04 -04:00
cat Provides a cat api endpoint for templates. (#20545) 2016-09-20 10:40:23 +02:00
cluster Remove lenient URL parameter parsing 2016-10-04 12:45:29 -04:00
docs Remove lenient URL parameter parsing 2016-10-04 12:45:29 -04:00
how-to Add more information to the how-to docs. #20297 2016-09-02 14:28:47 +02:00
images Docs: clarify calculation of sigma and lambda in function_score (#20267) 2016-09-02 14:41:07 +02:00
index-modules Update docs for Log4j 2 2016-08-31 15:51:52 -04:00
indices Switch more docs to CONSOLE 2016-09-02 18:22:30 -04:00
ingest docs: marked `foreach` processor as experimental 2016-09-30 12:23:42 +02:00
mapping Revert "Default `include_in_all` for numeric-like types to false" 2016-09-28 07:07:46 -06:00
migration [DOCS] Remove non-valid link to mapping migration document 2016-09-28 09:09:19 -06:00
modules Convert more docs to CONSOLE 2016-09-21 09:36:21 -04:00
query-dsl Update docs for LatLonPoint cut over 2016-09-13 12:18:21 -05:00
search Stabelize tests in phrase-suggest.asciidoc 2016-09-29 11:13:17 +02:00
setup File descriptors limit doesn't apply to Windows 2016-10-04 11:32:08 -04:00
testing Remove most of the need for `// NOTCONSOLE` 2016-09-06 10:32:54 -04: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 Add date-math support to `_rollover` (#20709) 2016-10-03 16:52:33 +02:00
cat.asciidoc Provides a cat api endpoint for templates. (#20545) 2016-09-20 10:40:23 +02: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] Adapt //TESTREPONSE for Windows platforms 2016-10-03 11:30:23 +02: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 notes about sparsity. 2016-07-07 17:47:19 +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 Use a comment block to comment out release notes 2016-09-08 18:30:37 +02:00
indices.asciidoc [DOCS] fix missing rollover-index link 2016-06-17 12:14:45 -04: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
redirects.asciidoc Convert more docs to CONSOLE 2016-09-20 13:12:12 -04:00
release-notes.asciidoc Remove links to release notes 2016-09-08 18:07:39 +02:00
search.asciidoc Fail build if new doc snippets aren't `// CONSOLE` 2016-09-19 16:43:43 -04:00
setup.asciidoc Die with dignity 2016-07-07 14:44:03 -04:00
testing.asciidoc