Skip to content

Commit 19d816f

Browse files
authored
Merge branch 'master' into searchResposne-type-definitions
2 parents fb16705 + b2435ea commit 19d816f

File tree

3 files changed

+34
-57
lines changed

3 files changed

+34
-57
lines changed

.code-samples.meilisearch.yaml

Lines changed: 26 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -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()
130125
update_searchable_attributes_1: |-
131126
client.index('movies').updateSearchableAttributes([
132-
'title',
133-
'description',
134-
'uid'
127+
'title',
128+
'description',
129+
'genre',
135130
])
136131
reset_searchable_attributes_1: |-
137132
client.index('movies').resetSearchableAttributes()
138133
get_displayed_attributes_1: |-
139134
client.index('movies').getDisplayedAttributes()
140135
update_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
])
148142
reset_displayed_attributes_1: |-
149143
client.index('movies').resetDisplayedAttributes()
@@ -159,24 +153,19 @@ distinct_attribute_guide_1: |-
159153
client.index('jackets').updateSettings({ distinctAttribute: 'product_id' })
160154
field_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+
})
172162
field_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
})
182171
filtering_guide_1: |-
@@ -266,32 +255,27 @@ settings_guide_distinct_1: |-
266255
settings_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
})
278263
settings_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
})
288272
add_movies_json_1: |-
289273
const movies = require('./movies.json')
290274
index.addDocuments(movies).then((res) => console.log(res))
291275
documents_guide_add_movie_1: |-
292276
index.addDocuments([{
293-
"movie_id": "123sq178",
294-
"title": "Amelie Poulain"
277+
'movie_id': '123sq178',
278+
'title': 'Amelie Poulain'
295279
}])
296280
search_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/)
329306
getting_started_search_md: |-
330307
```js

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
<h4 align="center">
88
<a href="https://github.com/meilisearch/MeiliSearch">MeiliSearch</a> |
99
<a href="https://docs.meilisearch.com">Documentation</a> |
10+
<a href="https://slack.meilisearch.com">Slack</a> |
1011
<a href="https://roadmap.meilisearch.com/tabs/1-under-consideration">Roadmap</a> |
1112
<a href="https://www.meilisearch.com">Website</a> |
12-
<a href="https://blog.meilisearch.com">Blog</a> |
13-
<a href="https://twitter.com/meilisearch">Twitter</a> |
1413
<a href="https://docs.meilisearch.com/faq">FAQ</a>
1514
</h4>
1615

@@ -19,13 +18,14 @@
1918
<a href="https://github.com/meilisearch/meilisearch-js/actions"><img src="https://github.com/meilisearch/meilisearch-js/workflows/Tests/badge.svg" alt="Tests"></a>
2019
<a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/styled_with-prettier-ff69b4.svg" alt="Prettier"></a>
2120
<a href="https://github.com/meilisearch/meilisearch-js/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-informational" alt="License"></a>
22-
<a href="https://slack.meilisearch.com"><img src="https://img.shields.io/badge/slack-MeiliSearch-blue.svg?logo=slack" alt="Slack"></a>
2321
<a href="https://app.bors.tech/repositories/28762"><img src="https://bors.tech/images/badge_small.svg" alt="Bors enabled"></a>
2422
</p>
2523

2624
<p align="center">⚡ The MeiliSearch API client written for JavaScript</p>
2725

28-
**MeiliSearch JavaScript** is the MeiliSearch API client for JavaScript developers. **MeiliSearch** is a powerful, fast, open-source, easy to use and deploy search engine. Both searching and indexing are highly customizable. Features such as typo-tolerance, filters, and synonyms are provided out-of-the-box.
26+
**MeiliSearch JavaScript** is the MeiliSearch API client for JavaScript developers.
27+
28+
**MeiliSearch** is an open-source search engine. [Discover what MeiliSearch is!](https://github.com/meilisearch/MeiliSearch)
2929

3030
## Table of Contents <!-- omit in toc -->
3131

@@ -271,7 +271,7 @@ controller.abort()
271271

272272
## 🤖 Compatibility with MeiliSearch
273273

274-
This package only guarantees the compatibility with the [version v0.17.0 of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases/tag/v0.17.0).
274+
This package only guarantees the compatibility with the [version v0.18.1 of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases/tag/v0.18.1).
275275

276276
## 💡 Learn More
277277

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5000,9 +5000,9 @@ rollup-plugin-typescript2@^0.29.0:
50005000
tslib "2.0.1"
50015001

50025002
rollup@^2.2.0:
5003-
version "2.35.1"
5004-
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.35.1.tgz#e6bc8d10893556a638066f89e8c97f422d03968c"
5005-
integrity sha512-q5KxEyWpprAIcainhVy6HfRttD9kutQpHbeqDTWnqAFNJotiojetK6uqmcydNMymBEtC4I8bCYR+J3mTMqeaUA==
5003+
version "2.36.1"
5004+
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.36.1.tgz#2174f0c25c7b400d57b05628d0e732c7ae8d2178"
5005+
integrity sha512-eAfqho8dyzuVvrGqpR0ITgEdq0zG2QJeWYh+HeuTbpcaXk8vNFc48B7bJa1xYosTCKx0CuW+447oQOW8HgBIZQ==
50065006
optionalDependencies:
50075007
fsevents "~2.1.2"
50085008

0 commit comments

Comments
 (0)