From e9a1d91b0931f0f7fed94e095f29e6f7b41ae2aa Mon Sep 17 00:00:00 2001 From: Tommy <68053732+react-learner@users.noreply.github.com> Date: Wed, 6 Jan 2021 09:56:50 -0500 Subject: [PATCH 1/4] Change searchable attributes code sample Improve field_properties_guide_searchable_1 code sample --- .code-samples.meilisearch.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.code-samples.meilisearch.yaml b/.code-samples.meilisearch.yaml index b4e3d656f0..33e743ed07 100644 --- a/.code-samples.meilisearch.yaml +++ b/.code-samples.meilisearch.yaml @@ -238,13 +238,9 @@ field_properties_guide_searchable_1: |- -X POST 'http://localhost:7700/indexes/movies/settings' \ --data '{ "searchableAttributes": [ - "uid", - "movie_id", "title", "description", - "poster", - "release_date", - "rank" + "genre" ] }' field_properties_guide_displayed_1: |- From 73fe0558efef003673a152564750f539837c2d24 Mon Sep 17 00:00:00 2001 From: Tommy <68053732+react-learner@users.noreply.github.com> Date: Wed, 6 Jan 2021 10:07:55 -0500 Subject: [PATCH 2/4] Change searchable attributes example Adjusted example text for searchable fields in field_properties.md --- guides/advanced_guides/field_properties.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guides/advanced_guides/field_properties.md b/guides/advanced_guides/field_properties.md index b5be9227f1..e7b237b3dc 100644 --- a/guides/advanced_guides/field_properties.md +++ b/guides/advanced_guides/field_properties.md @@ -14,7 +14,9 @@ Therefore, if a field attribute is not in the searchable-attributes list, the fi #### Example -Suppose you manage a database that contains information about movies. By adding the following settings, the fields `uid`, `movie_id`, `title`, `description`, `poster`, `release_date` and `rank` will be searched. +given a dataset with the following fields: id, description, genre, title, release_date. We can update the searchable attributes by removing the id and the release_date and re-order fields following their importance. + +Suppose that you managed a database of movies with the following fields: `id`, `description`, `genre`, `title`, `release_date`. They all contain useful information; however, some are more useful than others. If you wanted to make the `id` and `release_date` fields non-searchable, and re-order the remaining fields by importance, you could update the searchable attributes in the following way. From 0d8d5dc7704282de70886764917ad29a246c63c5 Mon Sep 17 00:00:00 2001 From: Tommy <68053732+react-learner@users.noreply.github.com> Date: Wed, 6 Jan 2021 10:27:34 -0500 Subject: [PATCH 3/4] Removed accidental copy+paste --- guides/advanced_guides/field_properties.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/guides/advanced_guides/field_properties.md b/guides/advanced_guides/field_properties.md index e7b237b3dc..af7a1fa609 100644 --- a/guides/advanced_guides/field_properties.md +++ b/guides/advanced_guides/field_properties.md @@ -14,8 +14,6 @@ Therefore, if a field attribute is not in the searchable-attributes list, the fi #### Example -given a dataset with the following fields: id, description, genre, title, release_date. We can update the searchable attributes by removing the id and the release_date and re-order fields following their importance. - Suppose that you managed a database of movies with the following fields: `id`, `description`, `genre`, `title`, `release_date`. They all contain useful information; however, some are more useful than others. If you wanted to make the `id` and `release_date` fields non-searchable, and re-order the remaining fields by importance, you could update the searchable attributes in the following way. From 07d7971b12bed87ae63ab5949611c4e2775230c6 Mon Sep 17 00:00:00 2001 From: Tommy <68053732+react-learner@users.noreply.github.com> Date: Wed, 6 Jan 2021 10:30:59 -0500 Subject: [PATCH 4/4] Fix grammar + flow --- guides/advanced_guides/field_properties.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/advanced_guides/field_properties.md b/guides/advanced_guides/field_properties.md index af7a1fa609..85ceeecee5 100644 --- a/guides/advanced_guides/field_properties.md +++ b/guides/advanced_guides/field_properties.md @@ -14,7 +14,7 @@ Therefore, if a field attribute is not in the searchable-attributes list, the fi #### Example -Suppose that you managed a database of movies with the following fields: `id`, `description`, `genre`, `title`, `release_date`. They all contain useful information; however, some are more useful than others. If you wanted to make the `id` and `release_date` fields non-searchable, and re-order the remaining fields by importance, you could update the searchable attributes in the following way. +Suppose that you manage a database of movies with the following fields: `id`, `description`, `genre`, `title`, `release_date`. These fields all contain useful information; however, **some are more useful to search than others**. To make the `id` and `release_date` fields non-searchable and re-order the remaining fields by importance, you might update the searchable attributes list in the following way.