v0.10.0 π―
π Enhancements
- Add pagination settings methods
Future<Pagination> getPagination()
,Future<Task> resetPagination()
,Future<Task> updatePagination(Pagination pagination)
onIndex
instances. (#264) @ahmednfwela - Add faceting settings methods
Future<Faceting> getFaceting(),
Future resetFaceting(),
Future updateFaceting(Faceting faceting) onIndex
instances. (#265) @ahmednfwela - Add typo tolerance settings methods
Future<TypoTolerance> getTypoTolerance()
,Future<Task> resetTypoTolerance()
,Future<Task> updateTypoTolerance(TypoTolerance typoTolerance)
onIndex
instances. (#263) @ahmednfwela - Add filter-builder style: (#252) @ahmednfwela
- Added
filterExpression
parameter to the search method, which takes aMeiliOperatorExpressionBase
, 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()
toString
, which is equivalent to Meili.attr. - Added extension method
toMeiliValue()
toString
,num
,DateTime
,bool
, which are equivalent toMeili
.value.- Example: This query
index.search('prince', filterExpression: Meili.eq(Meili.attribute('tag'), Meili.value("Tale")));
is the same asindex.search('prince', filter: "tag = Tale")
.
- Example: This query
- Added
- Add
Future<List<Task>> addDocumentsInBatches(List<Map<String, Object?>> documents, { int batchSize = 1000, String? primaryKey })
toIndex
instances. - Add
Future<List<Task>> updateDocumentsInBatches(List<Map<String, Object?>> documents, { int batchSize = 1000, String? primaryKey })
toIndex
instances. - Add support to create documents from
ndJson
andCSV
formats directly fromIndex
withaddDocumentsNdjson
,addDocumentsCsv
,updateDocumentsNdjson
, andupdateDocumentsCsv
methods. (#261, #262) @ahmednfwela - Add support for
Dio
adapter customization withMeiliSearchClient.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 π