source-field.asciidoc 665 B

12345678910111213141516171819202122
  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. Though very handy to have around, the source field does incur storage
  10. overhead within the index. For this reason, it can be disabled. For
  11. example:
  12. [source,js]
  13. --------------------------------------------------
  14. {
  15. "tweet" : {
  16. "_source" : {"enabled" : false}
  17. }
  18. }
  19. --------------------------------------------------