Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes related to the next MeiliSearch release (v0.23.0) #195

Merged
merged 8 commits into from
Oct 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 33 additions & 2 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ create_an_index_1: |-
PrimaryKey: "movie_id",
})
update_an_index_1: |-
client.Index("movies").UpdateIndex("movie_review_id")
client.Index("movie_review").UpdateIndex("movie_review_id")
delete_an_index_1: |-
client.DeleteIndex("movies")
// OR
Expand Down Expand Up @@ -231,7 +231,7 @@ filtering_guide_3: |-
})
filtering_guide_4: |-
resp, err := client.Index("movies").Search("Planet of the Apes", &meilisearch.SearchRequest{
Filter: "rating >= 3 AND (NOT director = \"Tim Burton\"",
Filter: "rating >= 3 AND (NOT director = \"Tim Burton\")",
})
search_parameter_guide_query_1: |-
resp, err := client.Index("movies").Search("shifu", &meilisearch.SearchRequest{})
Expand Down Expand Up @@ -459,3 +459,34 @@ search_parameter_guide_sort_1: |-
"price:asc",
},
})
geosearch_guide_filter_settings_1: |-
filterableAttributes := []string{
"_geo",
}
client.Index("restaurants").UpdateFilterableAttributes(&filterableAttributes)
geosearch_guide_filter_usage_1: |-
resp, err := client.Index("restaurants").Search("", &meilisearch.SearchRequest{
Filter: "_geoRadius(45.4628328, 9.1076931, 2000)",
})
geosearch_guide_filter_usage_2: |-
resp, err := client.Index("restaurants").Search("", &meilisearch.SearchRequest{
Filter: "_geoRadius(45.4628328, 9.1076931, 2000) AND type = pizza",
})
geosearch_guide_sort_settings_1: |-
sortableAttributes := []string{
"_geo",
}
client.Index("restaurants").UpdateSortableAttributes(&sortableAttributes)
geosearch_guide_sort_usage_1: |-
resp, err := client.Index("restaurants").Search("", &meilisearch.SearchRequest{
Sort: []string{
"_geoPoint(48.8583701,2.2922926):asc",
},
})
geosearch_guide_sort_usage_2: |-
resp, err := client.Index("restaurants").Search("", &meilisearch.SearchRequest{
Sort: []string{
"_geoPoint(48.8583701,2.2922926):asc",
"rating:desc",
},
})
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ JSON output:

## 🤖 Compatibility with MeiliSearch

This package only guarantees the compatibility with the [version v0.22.0 of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases/tag/v0.22.0).
This package only guarantees the compatibility with the [version v0.23.0 of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases/tag/v0.23.0).

## 💡 Learn More

Expand Down