Skip to content

v0.10.0 🎯

Compare
Choose a tag to compare
@brunoocasali brunoocasali released this 22 Mar 18:43
· 371 commits to main since this release
f763b22

πŸš€ Enhancements

  • Add pagination settings methods Future<Pagination> getPagination(), Future<Task> resetPagination(), Future<Task> updatePagination(Pagination pagination) on Index instances. (#264) @ahmednfwela
  • Add faceting settings methods Future<Faceting> getFaceting(), Future resetFaceting(), Future updateFaceting(Faceting faceting) on Index instances. (#265) @ahmednfwela
  • Add typo tolerance settings methods Future<TypoTolerance> getTypoTolerance(), Future<Task> resetTypoTolerance(), Future<Task> updateTypoTolerance(TypoTolerance typoTolerance) on Index instances. (#263) @ahmednfwela
  • Add filter-builder style: (#252) @ahmednfwela
    • Added filterExpression parameter to the search method, which takes a MeiliOperatorExpressionBase, you can only use the new parameter or the regular filter parameter, but not both. If both are provided, filter parameter will take priority.
    • Added new facade class Meili which contains static methods to help create filter expressions.
    • Added extension method toMeiliAttribute() to String, which is equivalent to Meili.attr.
    • Added extension method toMeiliValue() to String, num, DateTime, bool, which are equivalent to Meili.value.
      • Example: This query index.search('prince', filterExpression: Meili.eq(Meili.attribute('tag'), Meili.value("Tale"))); is the same as index.search('prince', filter: "tag = Tale").
  • Add Future<List<Task>> addDocumentsInBatches(List<Map<String, Object?>> documents, { int batchSize = 1000, String? primaryKey }) to Index instances.
  • Add Future<List<Task>> updateDocumentsInBatches(List<Map<String, Object?>> documents, { int batchSize = 1000, String? primaryKey }) to Index instances.
  • Add support to create documents from ndJson and CSV formats directly from Index with addDocumentsNdjson, addDocumentsCsv, updateDocumentsNdjson, and updateDocumentsCsv methods. (#261, #262) @ahmednfwela
  • Add support for Dio adapter customization with MeiliSearchClient.withCustomDio(url, apiKey: "secret", interceptors: [interceptor]) (e.g: you can use this to inject custom code, support to HTTP/2 and more) (#266) @ahmednfwela

Special thanks to @ahmednfwela πŸŽ‰