Skip to content

Commit

Permalink
Merge #553
Browse files Browse the repository at this point in the history
553: Update version for the next release (v0.11.0) r=alallema a=meili-bot

This version makes this package compatible with Meilisearch v0.30.0 🎉
Check out the changelog of [Meilisearch v0.30.0](https://github.com/meilisearch/meilisearch/releases/tag/v0.30.0) for more information on the changes(#382).

## ⚠️ Breaking changes

* Add a builder for `SearchRequest` class (#543) `@alallema`
   - The search method can now only be instantiated:
   ```java
      SearchResult search(String q)
      Searchable search(SearchRequest searchRequest)
   ```
* Parameters on `getTasks` name changes: #390
   - `status` -> `statuses`
   - `indexUID` -> `indexUIDS`
   - `type` -> `types`
* New `pagination` strategy with the search parameters `page` and `hitsPerPage` #546
   - `public Searchable search(SearchRequest searchRequest)` method now return `Searchable` which can be extended to two different classes of results `SearchResult` and `SearchResultPaginated`
   - `SearchResult` is now an extended class of `Searchable`
   - Creation of the `SearchResultPaginated` class to handle pagination results from search
   - Creation of a common search result class `Searchable`

## 🚀 Enhancements

* Implement `getRawIndexes` with query parameters (#558) `@oraliahdz`
* New filters on `setTasks`: `uid`, `beforeEnqueuedAt`, `afterEnqueuedAt`, ... see #544
* New `client.cancelTasks` method that lets you cancel `enqueued` and `processing` tasks #547
* New `client.deleteTasks` method that lets you delete tasks #548
* New `client.swapIndexes` method that lets you swap two indexes #554 
* New fields on `TaskDetails` and modification of ``TaskInfo` #545

## 🐛 Bug Fixes

* Fix: #550 Add a constructor to initialize HttpClient using Gson by default (#551) `@gpor0`
* Fix matching strategy enum usage and add test (#561) `@alallema`

Thanks again to `@alallema,` `@gpor0` and `@oraliahdz!` 🎉



Co-authored-by: meili-bot <[email protected]>
Co-authored-by: Amélie <[email protected]>
  • Loading branch information
3 people authored Feb 27, 2023
2 parents 3a16e1a + 3c23e4b commit 85d33fd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -498,15 +498,15 @@ getting_started_add_documents_md: |-
<dependency>
<groupId>com.meilisearch.sdk</groupId>
<artifactId>meilisearch-java</artifactId>
<version>0.10.0</version>
<version>0.11.0</version>
<type>pom</type>
</dependency>
```
**Gradle**
Add the following line to the `dependencies` section of your `build.gradle`:
```groovy
implementation 'com.meilisearch.sdk:meilisearch-java:0.10.0'
implementation 'com.meilisearch.sdk:meilisearch-java:0.11.0'
```
```java
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Add the following code to the `<dependencies>` section of your project:
<dependency>
<groupId>com.meilisearch.sdk</groupId>
<artifactId>meilisearch-java</artifactId>
<version>0.10.0</version>
<version>0.11.0</version>
<type>pom</type>
</dependency>
```
Expand All @@ -66,7 +66,7 @@ Add the following code to the `<dependencies>` section of your project:
Add the following line to the `dependencies` section of your `build.gradle`:

```groovy
implementation 'com.meilisearch.sdk:meilisearch-java:0.10.0'
implementation 'com.meilisearch.sdk:meilisearch-java:0.11.0'
```

### Run Meilisearch <!-- omit in toc -->
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ plugins {

group = 'com.meilisearch.sdk'
archivesBaseName = 'meilisearch-java'
version = '0.10.0'
version = '0.11.0'

java {
sourceCompatibility = JavaVersion.VERSION_1_8
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/meilisearch/sdk/Version.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.meilisearch.sdk;

public class Version {
static final String VERSION = "0.10.0";
static final String VERSION = "0.11.0";

public static String getQualifiedVersion() {
return "Meilisearch Java (v" + VERSION + ")";
Expand Down

0 comments on commit 85d33fd

Please sign in to comment.