Skip to content

v0.47.0 🌻

Compare
Choose a tag to compare
@meili-bot meili-bot released this 23 Dec 11:42
· 112 commits to refs/heads/main since this release
eb60101

This version introduces features released on Meilisearch v1.12.0 πŸŽ‰

Check out the Meilisearch v1.12.0 changelog for more information.

πŸš€ Enhancements

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

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

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

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

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

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.

// 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()

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:

{
  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 @Barabasbalazs, @mdubus, @irevoire, @curquiza, and @Strift. πŸŽ‰