source-field.asciidoc 519 B

12345678910111213
  1. [[mapping-source-field]]
  2. === `_source`
  3. The `_source` field is an automatically generated field that stores the
  4. actual JSON that was used as the indexed document. It is not indexed
  5. (searchable), just stored. When executing "fetch" requests, like
  6. <<docs-get,get>> or
  7. <<search-search,search>>, the `_source` field is
  8. returned by default.
  9. Many APIs may use the `_source` field. For example, the
  10. <<docs-update,Update API>>. To minimize the storage cost of
  11. `_source`, set `index.codec: best_compression` in index settings.