Skip to content

Commit 97200d9

Browse files
authored
Update .code-samples for next release v1.2
1 parent 2a1e196 commit 97200d9

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.code-samples.meilisearch.yaml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,15 @@
44
# You can read more on https://github.com/meilisearch/documentation/tree/master/.vuepress/code-samples
55
---
66
get_documents_post_1: |-
7-
POST http://localhost:7700/indexes/books/documents/fetch
8-
with data: {
9-
"filter": "(rating > 3 AND (genres = Adventure OR genres = Fiction)) AND language = English",
10-
"fields": ["title", "genres", "rating", "language"],
11-
"limit": 3
12-
}
13-
7+
client.index('books').get_documents(
8+
filter: '(rating > 3 AND (genres = Adventure OR genres = Fiction)) AND language = English',
9+
limit: 3,
10+
fields: ['title', 'genres', 'rating', 'language']
11+
)
1412
delete_documents_by_filter_1: |-
15-
POST http://localhost:7700/indexes/movies/documents/delete
16-
with data: { "filter": "genres = action OR genres = adventure" }
17-
13+
client.index('movies').get_documents(filter: 'genres = action OR genres adventure')
1814
get_documents_1: |-
19-
GET 'http://localhost:7700/indexes/movies/documents?limit=2&filter=genres=action
20-
mind the filter in the query param (use the POST route in the integrations)
21-
15+
client.index('movies').get_documents(limit: 2, filter: 'genres = action')
2216
getting_started_faceting: |-
2317
client.index('movies').update_faceting(max_values_per_facet: 2)
2418
getting_started_pagination: |-

0 commit comments

Comments
 (0)