Skip to content

Commit

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

_This PR is auto-generated._

The automated script updates the version of meilisearch-js to a new version: "v0.47.0"

CHANGELOGS 👇

This version introduces features released on Meilisearch v1.12.0 🎉

Check out the [Meilisearch v1.12.0 changelog](https://github.com/meilisearch/meilisearch/releases/tag/v1.12.0) for more information.

## 🚀 Enhancements

- **Addition:** #1775 

Introducing new methods to get one or several batches, respectively `getBatch()` and `getBatches()`.

```ts
// fetch one batch using batch UID
const batch = await client.getBatch(123)

// fetch all batches
const batches = await client.getBatches()
```

- **Addition:** #1774 

The `getTasks()` methods now accept a `reverse` parameter to retrieve tasks in reverse chronological order.

```ts
const tasks = await client.getTasks({ reverse: true });
```

- **Addition:** #1790

Index settings now allow disabling **prefix search** and **facet search**. They're both enabled by default. The SDK now comes with dedicated methods to configure these settings.

```ts
// disable prefix search
await client.index('myIndex').updatePrefixSearch('disabled')
// reset prefix search settings
await client.index('myIndex').resetPrefixSearch()

// disable facet search
await client.index('myIndex').updateFacetSearch(false)
// reset facet search settings
await client.index('myIndex').resetFacetSearch()
```

- **Update:** #1773 

The `_matchesPosition` array now contains an `indices` array the text was matched in an array.

When searching for `fantasy` in a document that has a searchable `genre` field with the value `genre: ["fantasy", "adventure"]`, the matches position will be as follow: 

```ts
{
  genre: [{ start: 0, length: 7, indices: [0] }]
}
```

Which means:
- There was a single match in the `genre` array (array length == 1)
- The match started as position `0` (the first character, "f")
- The match has a length of `7` (the entire "fantasy" word)
- The match was in the first item of the array (indices == [0]) 

⚙️ Maintenance/misc

- Update CONTRIBUTING.md with minimal Node version (#1788) 

Thanks again to `@/irevoire,` `@/Barabasbalazs,` `@/irevoire,` `@/curquiza,` and `@/Strift.` 🎉

Co-authored-by: meili-bot <[email protected]>
  • Loading branch information
meili-bors[bot] and meili-bot authored Dec 23, 2024
2 parents d3593cd + 402163f commit eb60101
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "meilisearch",
"version": "0.46.0",
"version": "0.47.0",
"description": "The Meilisearch JS client for Node.js and the browser.",
"keywords": [
"meilisearch",
Expand Down
2 changes: 1 addition & 1 deletion src/package-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const PACKAGE_VERSION = "0.46.0";
export const PACKAGE_VERSION = "0.47.0";

0 comments on commit eb60101

Please sign in to comment.