Skip to content

Commit

Permalink
Merge #442
Browse files Browse the repository at this point in the history
442: Update code-samples for v1.2 r=alallema a=meili-bot

_This PR is auto-generated._

Update the code-samples.meilisearch.yml according to the [integration-guides issue](meilisearch/integration-guides#270) for more information and the complete description about what should be done here check that issue.
This is the [central issue](meilisearch/integration-guides#261) about the Meilisearch release v1.2 in the integrations.


Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com>
Co-authored-by: alallema <amelie@meilisearch.com>
Co-authored-by: Amélie <alallema@users.noreply.github.com>
  • Loading branch information
4 people authored Jun 5, 2023
2 parents 7f969ed + 4677052 commit 9c31a1e
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,19 @@ get_one_document_1: |-
Fields: []string{"id", "title", "poster", "release_date"},
}, &a)
get_documents_1: |-
var a []interface{}
client.Index("movies").GetDocuments(nil, &meilisearch.DocumentsQuery{
var result meilisearch.DocumentsResult
client.Index("movies").GetDocuments(&meilisearch.DocumentsQuery{
Limit: 2,
}, &a)
Filter: "genres = action",
}, &result)
get_documents_post_1: |-
var result meilisearch.DocumentsResult
client.Index("books").GetDocuments(&meilisearch.DocumentsQuery{
Fields: []string{"title", "genres", "rating", "language"},
Filter: "(rating > 3 AND (genres = Adventure OR genres = Fiction)) AND language = English",
}, &result)
add_or_replace_documents_1: |-
documents := []map[string]interface{}{
{
Expand All @@ -59,13 +68,15 @@ delete_all_documents_1: |-
client.Index("movies").DeleteAllDocuments()
delete_one_document_1: |-
client.Index("movies").DeleteDocument("25684")
delete_documents_1: |-
delete_documents_by_batch_1: |-
client.Index("movies").DeleteDocuments([]string{
"23488",
"153738",
"437035",
"363869",
})
delete_documents_by_filter_1: |-
client.Index("movies").DeleteDocumentsByFilter("genres=action OR genres=adventure")
search_post_1: |-
client.Index("movies").Search("american ninja", &meilisearch.SearchRequest{})
multi_search_1: |-
Expand Down

0 comments on commit 9c31a1e

Please sign in to comment.