v0.28.0 🐹
meili-bot
released this
21 Aug 16:13
·
71 commits
to refs/heads/main
since this release
⚠️ Breaking changes
// Before
client := meilisearch.NewClient(meilisearch.ClientConfig{
client := meilisearch.New("http://localhost:7700", meilisearch.WithAPIKey("foobar"))
Host: "http://127.0.0.1:7700",
APIKey: "masterKey",
})
// Now
client := meilisearch.New("http://localhost:7700", meilisearch.WithAPIKey("foobar"))
- Feat sort facets value by alphanumerical (
SortFacetTypeAlpha
) or count order (SortFacetTypeCount
) (#558) @Ja7ad
Before:
// Before
client.Index("movies").UpdateFaceting(&meilisearch.Faceting{
MaxValuesPerFacet: 2,
SortFacetValuesBy: {
"*": "count",
}
})
// Now
client.Index("movies").UpdateFaceting(&meilisearch.Faceting{
MaxValuesPerFacet: 2,
SortFacetValuesBy: {
"*": SortFacetTypeCount,
}
})
// Before
resp, err := client.Index("movies").Search("big fat liar", &meilisearch.SearchRequest{
MatchingStrategy: "last",
})
// or
resp, err := client.Index("movies").Search("big fat liar", &meilisearch.SearchRequest{
MatchingStrategy: "all",
})
// Now
resp, err := client.Index("movies").Search("big fat liar", &meilisearch.SearchRequest{
MatchingStrategy: Last,
})
// or
resp, err := client.Index("movies").Search("big fat liar", &meilisearch.SearchRequest{
MatchingStrategy: All,
})
🚀 Enhancements
- Add method to create snapshot (#560) @Ja7ad
- Feat support text-separator customization (#559) @Ja7ad
- Add dictionary settings (#562) @Ja7ad
- Feat support proximityPrecision setting (#564) @Ja7ad