API/behavior changes

indexingFragments parameter

The new indexingFragments embedder setting is available for embedders with source rest.

It is an object whose keys can be freely chosen by the user, and values are “indexing request fragment” objects.

When processing a document, Meilisearch assembles the request fragments for that document, and when enough request fragments have been assembled, send a request to the remote embedder.

When indexingFragments is present and non-null, then the following changes occur:

  1. documentTemplate must be absent or null, otherwise an error is raised.
  2. request should not use the "{{text}}" placeholder, but rather the "{{fragment}}" placeholder, standing for the various fragments being assembled.

searchFragment parameter

The new searchFragments embedder setting is available for embedders with source rest.

It is an object whose keys can be freely chosen by the user, and values are “search request fragment” objects.

When processing a search, Meilisearch finds a matching request fragment for that search query, and send a request to the remote embedder.

The request fragment object

A request fragment is a JSON object with the following fields:

media search query parameter

Search queries can now contain an additional media parameter.