Skip to content

Commit e1186c2

Browse files
committed
Update .code-samples.meilisearch.yaml
1 parent ed73bdf commit e1186c2

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.code-samples.meilisearch.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
# the documentation on build
44
# You can read more on https://github.com/meilisearch/documentation/tree/master/.vuepress/code-samples
55
---
6+
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+
14+
delete_documents_by_filter_1: |-
15+
POST http://localhost:7700/indexes/movies/documents/delete
16+
with data: { "filter": "genres = action OR genres = adventure" }
17+
18+
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+
622
synonyms_guide_1: |-
723
client.index('movies').updateSynonyms({
824
"great": ["fantastic"],
@@ -62,7 +78,7 @@ delete_all_documents_1: |-
6278
client.index('movies').deleteAllDocuments()
6379
delete_one_document_1: |-
6480
client.index('movies').deleteDocument(25684)
65-
delete_documents_1: |-
81+
delete_documents_by_batch_1: |-
6682
client.index('movies').deleteDocuments([23488, 153738, 437035, 363869])
6783
search_post_1: |-
6884
client.index('movies').search('American ninja')

0 commit comments

Comments
 (0)