# Documents

Documents are objects composed of fields containing any data.
A field is composed of an attribute and its associated data.

  "id": 3205,
  "title": "Interstellar",
  "description": "This is a great movie.",
  "type": ["sci fi", "space"]

In this document, attributes are "id", "title", "description" and "type".
The fields are the combination of attributes and data (i.e. "title": "Interstellar").

# Documents structure

A document is added to MeiliSearch in JSON format.
Each documents fields should correspond to an attribute in the schema to be taken into account.


Documents fields that do not correspond to the schema fields are ignored.

When using the route to add new documents all documents should be sent in an array. And this, even if there is only one document.