Skip to content

Releases: meilisearch/meilisearch-java

v0.8.0 ☕️

14 Nov 10:54
1ab0352

Choose a tag to compare

This version includes a major redesign of the SDK. (#425@alallema

⚠️ Breaking changes

  • Redesign of the client (#449) @alallema:
    • Use OkHttp library by default for the Meilisearch client
    • No interface for the creation of a Client disappearing of the class GenericServiceTemplate, ServiceTemplate, AbstractClient, ApacheClient, and DefaultHttpClient.
  • Rename getAllIndexes method in getIndexes (#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, and MeilisearchHttpRequest.
  • Rewriting of the JsonHandler
    • Offering the possibility to use Gson, Jackson or create your own handler.([#432]
    • Remove JsonbJsonHandler.
  • Dump returns a Taskfrom v0.28.0 so the createDump method has been removed just as the DumpHandler class.
  • Renaming class Details in TaskDetails
  • All methods return now a MeilisearchException instead of a Exception.

🚀 Enhancements

Thanks again to @alallema, @brunoocasali, @ghousek1, @kisaga! 🎉

v0.7.2 ☕️

09 May 13:17
d28e4ff

Choose a tag to compare

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, highlightPostTag and cropMarker #375 @alallema

Thanks again to @alallema, @brunoocasali! 🎉

v0.7.1 ☕️

14 Mar 15:28
cf4a3bc

Choose a tag to compare

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 ⚠️ Breaking changes about the flag and dump new behavior. (#339)

🚀 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 ☕️

04 Feb 17:19
50ed2c5

Choose a tag to compare

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?
    • MeiliSearch v0.25.0 use Authorization header instead of X-Meili-API-Key (#306) @alallema
    • MeiliSearch v0.25.0 has a new API regarding the updates that have been renamed into tasks. More details in the following points
  • Remove deleteIfExist and getOrCreate (#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 a Yask response instead of an Index.
      • index.create and index.delete from index return a Task.
      • waitForPendingUpdate() is renamed into waitForTask and is accessible from index and from client.
      • the current index.waitForTask() method call /tasks/:uid
      • index.getUpdateStatus is renamed index.getTask
      • index.getAllUpdateStatus is renamed index.getTasks
      • new method client.waitForTask() call /tasks/:uid
      • new method client.waitForTask()
      • new method client.getTasks that calls /tasks
      • new method client.getTask that calls /tasks/:uid
        Notes: The only two methods that now return an Index are client.index() and client.get_index()
  • Change client.getKeys does 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.getKey get information about a specific API key.
      • client.createKey create a new API key.
      • client.deleteKey delete an API key.
      • client.updateKey update an API key.
    • Check out the documentation guide.
  • Add the possibility to add documents in batches and update documents in batches (#305) @diegonavarroq

🐛 Bug Fixes

Thanks again to @Artumira96, @alallema, @diegonavarroq, @irenejoeunpark ! 🎉

v0.6.0 ☕️

18 Nov 15:28
a5bb3c6

Choose a tag to compare

This package version is compatible with MeiliSearch v0.24.0

⚠️ Breaking changes

  • Rename errorCode, errorLink, errorType and errorMessage in code, link, type and message (#280) @alallema
  • Update the error change in UpdateStatus class but create error object containing code, link and type (#282) @alallema

🚀 Enhancements

Thanks again to @Hard-Coder05, @alallema, @curquiza, @ezienecker, @irenejoeunpark, and @ujjavala! 🎉

v0.5.0 ☕️

13 Oct 14:24
4d2a6cb

Choose a tag to compare

This package version is compatible with MeiliSearch v0.23.0

Changes

  • addDocuments and updateDocuments take primaryKey as optional param (#224) @vishnugt
  • Added getRawIndex and getRawIndexList methods (#239) @vishnugt

Breaking changes ⚠️

  • Add support for filter arrays and nested filters in filter search (#222) @vishnugt

Thanks again to @alallema, @ansavanix, @curquiza, @inomag, @ishika22, @mohitsaxenaknoldus, and @vishnugt! 🎉

v0.4.1 ☕️

14 Sep 11:37
abd2a76

Choose a tag to compare

This package version is compatible with MeiliSearch v0.22.0 🎉

Changes

  • Add sort feature compatibility (#204) @alallema. More about sorting.
    • Add sortable attributes methods: get_sortable_attributes, set_sortable_attributes, reset_sortable_attributes.
    • Add sort parameter during search.

Thanks again to @alallema! 🎉

v0.4.0 ☕️

24 Aug 17:18
224df80

Choose a tag to compare

This version makes this package compatible with MeiliSearch v0.21.0
🎉 Check out the changelog of MeiliSearch v0.21.0

Changes

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)

Thanks again to @alallema, @curquiza, and @ppshobi! 🎉

v0.3.1 ☕️

10 Jun 13:43
8fab459

Choose a tag to compare

Changes

Thanks again to @alallema, @curquiza, @eskombro! 🎉

v0.3.0 ☕️

22 Mar 05:51
7ed825f

Choose a tag to compare

Changes

Breaking changes ⚠️

  • Improve error handling (#120) @niemannd
  • Response with generic class for Search (#108) @djKooks

Thanks again to @chboing, @curquiza, @djKooks, @eskombro, @fharper, @nicolasvienot, @niemannd, @react-learner and Christophe BECKERICH! 🎉