Releases: meilisearch/meilisearch-java
v0.8.0 ☕️
This version includes a major redesign of the SDK. (#425) @alallema
⚠️ Breaking changes
- Redesign of the client (#449) @alallema:
- Use
OkHttplibrary by default for the Meilisearch client - No interface for the creation of a Client disappearing of the class
GenericServiceTemplate,ServiceTemplate,AbstractClient,ApacheClient, andDefaultHttpClient.
- Use
- Rename
getAllIndexesmethod ingetIndexes(#477) @alallema - All parameters of the managers accessible in the client are now private:
Config,IndexesHandler,InstanceHandler,TasksHandler,KeysHandler,JsonHandler. - Factories for the answer and the response disappeared, those classes were removed:
BasicRequestFactory,BasicHttpResponse,BasicHttpRequest, andMeilisearchHttpRequest. - Rewriting of the JsonHandler
- Offering the possibility to use
Gson,Jacksonor create your own handler.([#432] - Remove
JsonbJsonHandler.
- Offering the possibility to use
- Dump returns a
Taskfrom v0.28.0 so thecreateDumpmethod has been removed just as theDumpHandlerclass. - Renaming class
DetailsinTaskDetails - All methods return now a
MeilisearchExceptioninstead of aException.
🚀 Enhancements
- Replaced traditional getter setter by
@Getter@Setterfrom Lombok library (#385) @ghousek1 - Improve Docker configuration in the package (#399)
- Add code-coverage tool (jacoco) (#422) @brunoocasali
- Refactoring:
- Rewriting of the Error Handler (#438) @alallema
- Like the other SDKs, this one now contains
MeilisearchApiError,MeiliSearchCommunicationError,MeilisearchTimeoutError,JsonDecodingExceptionas well asJsonEncodingException. - All methods return now a
MeilisearchExceptioninstead of a Exception.
(https://github.com/meilisearch/meilisearch-java/pull/432)) [@alallema](https://github.com/alallema)
- Like the other SDKs, this one now contains
- Rewrite some missing method (#473) @alallema
- Add typo tolerance settings (#371) @alallema
- Add toString method to SearchRequest Class (#451) @alallema
- Add support to PATCH HTTP method (#472) @alallema
- Rewriting of the Error Handler (#438) @alallema
Thanks again to @alallema, @brunoocasali, @ghousek1, @kisaga! 🎉
v0.7.2 ☕️
This version makes this package compatible with Meilisearch v0.27.0🎉
Check out the changelog of Meilisearch v0.27.0 for more information about the changes.
🚀 Enhancements
- Ensure nested field support #374 @alallema
- Add new search parameters
highlightPreTag,highlightPostTagandcropMarker#375 @alallema
Thanks again to @alallema, @brunoocasali! 🎉
v0.7.1 ☕️
This version makes this package compatible with Meilisearch v0.25 up to v0.26.0
🎉 Check out the changelog of Meilisearch v0.26.0 for more information about the
🚀 Enhancements
- Create new Details class and add Details field in Task class (#336) @kuruvasatya
- Added new method
generateTenantToken()as a result of the addition of the multi-tenant functionality.
This method creates a JWT tenant token that will allow the user to have multi-tenant indexes and thus restrict access to documents based on the end-user making the search request. (#345) @alallema
Thanks again to @alallema, @dichotommy, @kuruvasatya! 🎉
v0.7.0 ☕️
This package version is compatible with MeiliSearch v0.25.0 (#296)
⚠️ Breaking changes
- This package is only compatible with MeiliSearch v0.25.0 and later, but not with v0.24.0 and older. Be sure you are using at least MeiliSearch v0.25.0 or newer before doing the upgrade.
Why isn't it compatible? - Remove
deleteIfExistandgetOrCreate(#307) (#308) @alallema - Redesign API update by task (#311) @alallema
- All the actions on indexes are now asynchronous check out the task API references and the asynchronous tasks guide
createIndex(),updateIndex(),deleteIndex()are now asynchrone and return aYaskresponse instead of anIndex.index.createandindex.deletefrom index return aTask.waitForPendingUpdate()is renamed intowaitForTaskand is accessible fromindexand fromclient.- the current
index.waitForTask()method call/tasks/:uid index.getUpdateStatusis renamedindex.getTaskindex.getAllUpdateStatusis renamedindex.getTasks- new method
client.waitForTask()call/tasks/:uid - new method
client.waitForTask() - new method
client.getTasksthat calls/tasks - new method
client.getTaskthat calls/tasks/:uid
Notes: The only two methods that now return anIndexareclient.index()andclient.get_index()
- All the actions on indexes are now asynchronous check out the task API references and the asynchronous tasks guide
- Change
client.getKeysdoes not return an object of keys, but an array of keys. Check out keys API references. - Changes related to the next MeiliSearch release (v0.25.0) (#296)
🚀 Enhancements
- Addition related to API keys (#317) @alallema
- Granular management of API keys is now added to MeiliSearch. New methods have been created to manage this:
client.getKeyget information about a specific API key.client.createKeycreate a new API key.client.deleteKeydelete an API key.client.updateKeyupdate an API key.
- Check out the documentation guide.
- Granular management of API keys is now added to MeiliSearch. New methods have been created to manage this:
- Add the possibility to add documents in batches and update documents in batches (#305) @diegonavarroq
🐛 Bug Fixes
- Change type for variable of databaseSize (#299) @diegonavarroq
- make Class Error accesible (#303) @Artumira96
Thanks again to @Artumira96, @alallema, @diegonavarroq, @irenejoeunpark ! 🎉
v0.6.0 ☕️
This package version is compatible with MeiliSearch v0.24.0
⚠️ Breaking changes
- Rename
errorCode,errorLink,errorTypeanderrorMessageincode,link,typeandmessage(#280) @alallema - Update the error change in UpdateStatus class but create
errorobject containingcode,linkandtype(#282) @alallema
🚀 Enhancements
- Add offset and attributesToRetrieve parameter to get docum… (#247) @ezienecker
- Add delete index if exists method (#248) @ezienecker
- Add RUD operations for ranking rule settings (#254) @ezienecker
- Implement sub-settings methods (#264) @ezienecker
Thanks again to @Hard-Coder05, @alallema, @curquiza, @ezienecker, @irenejoeunpark, and @ujjavala! 🎉
v0.5.0 ☕️
This package version is compatible with MeiliSearch v0.23.0
Changes
addDocumentsandupdateDocumentstake primaryKey as optional param (#224) @vishnugt- Added
getRawIndexandgetRawIndexListmethods (#239) @vishnugt
Breaking changes ⚠️
Thanks again to @alallema, @ansavanix, @curquiza, @inomag, @ishika22, @mohitsaxenaknoldus, and @vishnugt! 🎉
v0.4.1 ☕️
This package version is compatible with MeiliSearch v0.22.0 🎉
Changes
- Add
sortfeature compatibility (#204) @alallema. More about sorting.- Add sortable attributes methods:
get_sortable_attributes,set_sortable_attributes,reset_sortable_attributes. - Add
sortparameter during search.
- Add sortable attributes methods:
Thanks again to @alallema! 🎉
v0.4.0 ☕️
This version makes this package compatible with MeiliSearch v0.21.0
🎉 Check out the changelog of MeiliSearch v0.21.0
Changes
- Add Fields in Dump (#180) @alallema
- Add facets distribution fields in search request (#185) @alallema
Breaking changes ⚠️
- Rename of buildDate into commitDate (#177) @alallema
- Rename attributes_for_faceting into filterable_attributes (#178) @alallema
- Rename FieldsDsitribution into FieldDistribution (#179) @alallema
- Rename Filters into Filter (#181) @alallema
- Changes related to the next MeiliSearch release (v0.21.0) (#157)
v0.3.1 ☕️
v0.3.0 ☕️
Changes
- BasicHttpRequest Enconding with UTF-8 (#132) @chboing
- Implement APIs based on ServiceTemplate (#121 #122) @niemannd
- Add package version to Jupiter (#119) @fharper
Breaking changes ⚠️
Thanks again to @chboing, @curquiza, @djKooks, @eskombro, @fharper, @nicolasvienot, @niemannd, @react-learner and Christophe BECKERICH! 🎉