Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly state attributes are case-sensitive #2976

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions learn/getting_started/documents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ Nothing will be shared between two indexes if they contain the exact same docume

## Fields

A field is a set of two data items linked together: an attribute and a value. Documents are made up of fields.
A **field** is a set of two data items linked together: an attribute and a value. Documents are made up of fields.

An **attribute** functions a bit like a variable in most programming languages. It is a name that allows you to store, access, and describe some data.
An **attribute** is a case-sensitive string that functions as a field's name and allows you to store, access, and describe data.

That data is the attribute's **value**. In the case of strings, a value **[can contain at most 65535 positions](/learn/resources/known_limitations#maximum-number-of-words-per-attribute)**. Words exceeding the 65535 position limit will be ignored.
That data is the field's **value**. Every field has a data type dictated by its value. Every value must be a valid [JSON data type](https://www.w3schools.com/js/js_json_datatypes.asp).

Every field has a data type dictated by its value. Every value must be a valid [JSON data type](https://www.w3schools.com/js/js_json_datatypes.asp).
If the value is a string, it **[can contain at most 65535 positions](/learn/resources/known_limitations#maximum-number-of-words-per-attribute)**. Words exceeding the 65535 position limit will be ignored.

If a field contains an object, Meilisearch flattens it during indexing using dot notation and brings the object's keys and values to the root level of the document itself. This flattened object is only an intermediary representation—you will get the original structure upon search. You can read more about this in our [dedicated guide](/learn/engine/datatypes#objects).

Expand Down
Loading