Skip to content

Commit adbb069

Browse files
Apply suggestions from code review
Co-authored-by: gui machiavelli <[email protected]>
1 parent 3dceb52 commit adbb069

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

learn/configuration/displayed_searchable_attributes.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,16 @@ By default, whenever a document is added to Meilisearch, all new attributes foun
55
- [`displayedAttributes`](/learn/configuration/displayed_searchable_attributes.md#displayed-fields): Attributes whose fields are displayed in documents
66
- [`searchableAttributes`](/learn/configuration/displayed_searchable_attributes.md#the-searchableattributes-list): Attributes whose values are searched for matching query words
77

8-
This means that by default, every field in a document is **displayed** and **searchable**. These properties can be modified in the [settings](/reference/api/settings.md).
8+
By default, every field in a document is **displayed** and **searchable**. These properties can be modified in the [settings](/reference/api/settings.md).
99

1010
## Displayed fields
1111

1212
The fields whose attributes are added to the [`displayedAttributes` list](/reference/api/settings.md#displayed-attributes) are **displayed in each matching document**.
1313

14-
Documents returned upon search contain only displayed fields.
14+
Documents returned upon search contain only displayed fields. If a field attribute is not in the displayed-attribute list, the field won't be added to the returned documents.
1515

1616
**By default, all field attributes are set as displayed**.
1717

18-
Therefore, if a field attribute is not in the displayed-attribute list, the field won't be added to the returned documents.
19-
20-
This list can be restricted to a selected set of attributes in the settings.
21-
2218
#### Example
2319

2420
Suppose you manage a database that contains information about movies. By adding the following settings, documents returned upon search will contain the fields `title`, `overview`, `release_date` and `genres`.

0 commit comments

Comments
 (0)