Skip to content

v0.28.0 🐹

Compare
Choose a tag to compare
@meili-bot meili-bot released this 21 Aug 16:13
· 71 commits to refs/heads/main since this release
345439c

⚠️ Breaking changes

  • Refactor meilisearch client wtih new client and documentation (#556 ) @Ja7ad
// 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,
      }
  })
  • Feat accept the frequency (Frequency) value for the matchingStrategy search (#565) @Ja7ad
// 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

⚙️ Maintenance/misc

  • Add makefile and badges for readme (#561) @Ja7ad