OpenSearch/docs/reference/docs
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
..
bulk-udp.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
bulk.asciidoc Docs: Add links to client helper classes for bulk/scroll/reindexing 2014-07-18 13:55:47 +02:00
delete-by-query.asciidoc [DOCS] rephrased delete by query docs 2014-02-13 11:44:51 +01:00
delete.asciidoc [DOCS] updated json responses after #4310 and #4480 2014-01-16 12:01:39 +01:00
get.asciidoc Add parameter to GET for checking if generated fields can be retrieved 2014-08-04 08:15:34 +02:00
index_.asciidoc typo 2014-07-21 19:09:22 +02:00
multi-get.asciidoc Add parameter to GET for checking if generated fields can be retrieved 2014-08-04 08:15:34 +02:00
multi-termvectors.asciidoc [DOCS] fixed broken json in multi term vectors docs 2014-05-08 16:01:13 +02:00
termvectors.asciidoc Term Vectors API: adds support for wildcards in selected fields 2014-07-30 17:44:37 +02:00
update.asciidoc Update: Detect noop updates sent with doc_as_upsert 2014-07-22 14:55:34 +02:00