fields.asciidoc 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. [[mapping-fields]]
  2. == Meta-Fields
  3. Each document has metadata associated with it, such as the `_index`, mapping
  4. <<mapping-type-field,`_type`>>, and `_id` meta-fields. The behaviour of some of these meta-fields
  5. can be customised when a mapping type is created.
  6. [float]
  7. === Identity meta-fields
  8. [horizontal]
  9. <<mapping-index-field,`_index`>>::
  10. The index to which the document belongs.
  11. <<mapping-type-field,`_type`>>::
  12. The document's <<mapping-type,mapping type>>.
  13. <<mapping-id-field,`_id`>>::
  14. The document's ID.
  15. [float]
  16. === Document source meta-fields
  17. <<mapping-source-field,`_source`>>::
  18. The original JSON representing the body of the document.
  19. {plugins}/mapper-size.html[`_size`]::
  20. The size of the `_source` field in bytes, provided by the
  21. {plugins}/mapper-size.html[`mapper-size` plugin].
  22. [float]
  23. === Indexing meta-fields
  24. <<mapping-field-names-field,`_field_names`>>::
  25. All fields in the document which contain non-null values.
  26. [float]
  27. === Routing meta-field
  28. <<mapping-routing-field,`_routing`>>::
  29. A custom routing value which routes a document to a particular shard.
  30. [float]
  31. === Other meta-field
  32. <<mapping-meta-field,`_meta`>>::
  33. Application specific metadata.
  34. include::fields/field-names-field.asciidoc[]
  35. include::fields/id-field.asciidoc[]
  36. include::fields/index-field.asciidoc[]
  37. include::fields/meta-field.asciidoc[]
  38. include::fields/routing-field.asciidoc[]
  39. include::fields/source-field.asciidoc[]
  40. include::fields/type-field.asciidoc[]