OpenSearch/docs/reference
Britta Weber 5706858722 Add parameter to GET for checking if generated fields can be retrieved
Fields of type `token_count`, `murmur3`, `_all` and `_field_names` are generated only when indexing.
If a GET requests accesses the transaction log (because no refresh
between indexing and GET request) then these fields cannot be retrieved at all.
Before the behavior was so:

`_all, _field_names`: The field was siletly ignored
`murmur3, token_count`: `NumberFormatException` because GET tried to parse the values from the source.

In addition, if these fields were not stored, the same behavior occured if the fields were
retrieved with GET after a `refresh()` because here also the source was used to get the fields.

Now, GET accepts a parameter `ignore_errors_on_generated_fields` which has
the following effect:
- Throw exception with meaningful error message explaining the problem if set to false (default)
- Ignore the field if set to true
- Always ignore the field if it was not set to stored

This changes the behavior for `_all` and `_field_names` as now an Exception is thrown if a user
tries to GET them before a `refresh()`.

closes #6676
closes #6973
2014-08-04 08:15:34 +02:00
..
analysis Docs: Fix syntax on lang-analyzer 2014-07-30 20:17:27 +02:00
cat Docs: Made current version, branch and jdk into asciidoc attributes 2014-07-23 11:55:35 +02:00
cluster Docs: Made current version, branch and jdk into asciidoc attributes 2014-07-23 11:55:35 +02:00
docs Add parameter to GET for checking if generated fields can be retrieved 2014-08-04 08:15:34 +02:00
images [doc] Correct decay function equations in function_score description 2014-07-23 17:33:22 +02:00
index-modules Update translog.asciidoc 2014-07-31 14:06:24 +02:00
indices Add `wait_if_ongoing` option to _flush requests 2014-07-24 15:34:53 +02:00
mapping Generate timestamp when path is null 2014-07-31 19:48:22 +02:00
migration [DOCS] Included the `_percolator` index breaking change to migration docs. 2014-02-20 16:43:06 +01:00
modules Support "default" for tcpNoDelay and tcpKeepAlive 2014-08-02 17:32:41 +02:00
query-dsl Update nested-query.asciidoc 2014-07-26 22:32:28 +02:00
search significant terms: add google normalized distance, add chi square 2014-08-04 08:15:26 +02:00
setup Docs: Changing ES_MAX_MEM default from '1gb' to '1g' 2014-07-25 12:50:59 +02:00
testing [TEST] Randomized number of shards used for indices created during tests 2014-03-10 13:01:52 +01:00
analysis.asciidoc Add more anchor links to documentation 2013-09-30 13:13:16 -06:00
api-conventions.asciidoc Disable JSONP by default 2014-07-09 21:17:17 +02:00
cat.asciidoc [DOCS] reordered cat apis menu 2014-06-03 11:06:35 +02:00
cluster.asciidoc [DOCS] Fix HTTP endpoints after stats API changes 2014-01-09 11:30:28 +01:00
docs.asciidoc [DOCS] Moved termvector and mtermvectors from search to docs 2014-01-22 14:10:26 +01:00
getting-started.asciidoc Docs: Made current version, branch and jdk into asciidoc attributes 2014-07-23 11:55:35 +02:00
glossary.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
index-modules.asciidoc Removed 0.90.* deprecation and addition notifications 2014-02-07 20:52:49 +01:00
index.asciidoc Docs: Made current version, branch and jdk into asciidoc attributes 2014-07-23 11:55:35 +02:00
indices.asciidoc [DOCS] Removed leftover indices status link 2014-04-28 11:39:12 +02:00
mapping.asciidoc Mappings: Add transform to document before index. 2014-07-15 18:40:46 +02:00
modules.asciidoc [DOCS] Fixed link to tribe.asciidoc 2014-01-13 22:01:12 +01:00
query-dsl.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
search.asciidoc Search Exists API: Checks if any matching documents exist for a given query 2014-07-31 15:42:30 -04:00
setup.asciidoc [DOCS] Java 7 is required since 1.2.0 2014-05-30 10:45:22 +02:00
testing.asciidoc [DOCS] Test framework documentation 2013-12-02 18:01:45 +01:00