@@ -61,20 +61,15 @@ update_settings_1: |-
6161 ],
6262 distinctAttribute: 'movie_id',
6363 searchableAttributes: [
64- 'uid',
65- 'movie_id',
6664 'title',
6765 'description',
68- 'poster',
69- 'release_date',
70- 'rank'
66+ 'genre'
7167 ],
7268 displayedAttributes: [
7369 'title',
7470 'description',
75- 'poster',
76- 'release_date',
77- 'rank'
71+ 'genre',
72+ 'release_date'
7873 ],
7974 stopWords: [
8075 'the',
@@ -129,21 +124,20 @@ get_searchable_attributes_1: |-
129124 client.index('movies').getSearchableAttributes()
130125update_searchable_attributes_1 : |-
131126 client.index('movies').updateSearchableAttributes([
132- 'title',
133- 'description',
134- 'uid'
127+ 'title',
128+ 'description',
129+ 'genre',
135130 ])
136131reset_searchable_attributes_1 : |-
137132 client.index('movies').resetSearchableAttributes()
138133get_displayed_attributes_1 : |-
139134 client.index('movies').getDisplayedAttributes()
140135update_displayed_attributes_1 : |-
141136 client.index('movies').updateDisplayedAttributes([
142- 'title',
143- 'description',
144- 'release_date',
145- 'rank',
146- 'poster'
137+ 'title',
138+ 'description',
139+ 'genre',
140+ 'release_date',
147141 ])
148142reset_displayed_attributes_1 : |-
149143 client.index('movies').resetDisplayedAttributes()
@@ -159,24 +153,19 @@ distinct_attribute_guide_1: |-
159153 client.index('jackets').updateSettings({ distinctAttribute: 'product_id' })
160154field_properties_guide_searchable_1 : |-
161155 client.index('movies').updateSettings({
162- searchableAttributes: [
163- 'uid',
164- 'movie_id',
165- 'title',
166- 'description',
167- 'poster',
168- 'release_date',
169- 'rank'
170- ]
171- })
156+ searchableAttributes: [
157+ 'title',
158+ 'description',
159+ 'genre'
160+ ]
161+ })
172162field_properties_guide_displayed_1 : |-
173163 client.index('movies').updateSettings({
174164 displayedAttributes: [
175165 'title',
176166 'description',
177- 'poster',
178- 'release_date',
179- 'rank'
167+ 'genre',
168+ 'release_date'
180169 ]
181170 })
182171filtering_guide_1 : |-
@@ -266,32 +255,27 @@ settings_guide_distinct_1: |-
266255settings_guide_searchable_1 : |-
267256 client.index('movies').updateSettings({
268257 searchableAttributes: [
269- 'uid',
270- 'movie_id',
271258 'title',
272259 'description',
273- 'poster',
274- 'release_date',
275- 'rank'
260+ 'genre'
276261 ]
277262 })
278263settings_guide_displayed_1 : |-
279264 client.index('movies').updateSettings({
280265 displayedAttributes: [
281266 'title',
282267 'description',
283- 'poster ',
268+ 'genre ',
284269 'release_date',
285- 'rank'
286270 ]
287271 })
288272add_movies_json_1 : |-
289273 const movies = require('./movies.json')
290274 index.addDocuments(movies).then((res) => console.log(res))
291275documents_guide_add_movie_1 : |-
292276 index.addDocuments([{
293- " movie_id": " 123sq178" ,
294- " title": " Amelie Poulain"
277+ ' movie_id': ' 123sq178' ,
278+ ' title': ' Amelie Poulain'
295279 }])
296280search_guide_1 : |-
297281 client.index('movies').search('shifu', {
@@ -302,29 +286,22 @@ search_guide_2: |-
302286 client.index('movies').search('Avengers', {
303287 filters: 'release_date > 795484800',
304288 })
305- getting_started_create_index_md : |-
289+ getting_started_add_documents_md : |-
306290 ```bash
307291 $ npm install meilisearch
308292 # or
309293 $ yarn add meilisearch
310294 ```
311295
312- ```javascript
296+ ```js
313297 const MeiliSearch = require('meilisearch')
298+ const movies = require('./movies.json')
314299
315300 const client = new MeiliSearch({ host: 'http://127.0.0.1:7700' })
316- const index = client
317- .createIndex('movies')
301+ client.index('movie').addDocuments(movies)
318302 .then((res) => console.log(res))
319303 ```
320304
321- [About this package](https://github.com/meilisearch/meilisearch-js/)
322- getting_started_add_documents_md : |-
323- ```js
324- const movies = require('./movies.json')
325- index.addDocuments(movies).then((res) => console.log(res))
326- ```
327-
328305 [About this package](https://github.com/meilisearch/meilisearch-js/)
329306getting_started_search_md : |-
330307 ```js
0 commit comments