-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Description
Changes in code-sample
Introduction
In the complete rewrite of the searchable and displayed attributes guide a decision to change the code-sample of the searchable Attribute has been taken.
Details
Previously
Previously there were too many attributes added to the list. Which made the example lose in clarity.
field_properties_guide_searchable_1: |-
$ curl \
-X POST 'http://localhost:7700/indexes/movies/settings' \
--data '{
"searchableAttributes": [
"uid",
"movie_id",
"title",
"description",
"poster",
"release_date",
"rank"
]
}'New
The following update of this code-sample limits the number of attributes used and is also more compliant with the official movie.json dataset used in many parts of the documentation.
field_properties_guide_searchable_1: |-
$ curl \
-X POST 'http://localhost:7700/indexes/movies/settings' \
--data '{
"searchableAttributes": [
"title",
"description",
"genre"
]
}'
TODO
All SDK's present in the documentation should update their .code-samples.meilisearch.yaml accordingly.
- documentation
- meilisearch-js
- meilisearch-python
- meilisearch-php
- meilisearch-ruby
- meilisearch-go
- meilisearch-rust
related: meilisearch/documentation#679
curquiza
Metadata
Metadata
Assignees
Labels
No labels