Context
Meilisearch introduced document relations as an experimental feature.
Objective
Add support for the document relations settings as an experimental feature. Experimental features should require opt-in by the user. Read the how to guide for more information.
Tasks
Resources
Release notes:
- Meilisearch v1.39 introduced cross-index document hydration via a new
foreignKeys index setting. This allows linking documents across indexes so that search results are automatically enriched with related data.
- Meilisearch v1.42 extended it with document join filtering — the ability to filter search results using the
_foreign() filter syntax on related indexes. This requires the foreign key field to also be configured in filterableAttributes.
- Meilisearch v1.48 refined it by restricting foreign filters to retrieval routes only.
Context
Meilisearch introduced document relations as an experimental feature.
Objective
Add support for the document relations settings as an experimental feature. Experimental features should require opt-in by the user. Read the how to guide for more information.
Tasks
foreignKeyssetting.code-samples.meilisearch.yamlmatching the Meilisearch documentation CURL examples:get_foreign_keys_setting_1: equivalent of this code sampleupdate_foreign_keys_setting_1: equivalent of this code samplereset_foreign_keys_setting_1: equivalent of this code sampleResources
Release notes:
foreignKeysindex setting. This allows linking documents across indexes so that search results are automatically enriched with related data._foreign()filter syntax on related indexes. This requires the foreign key field to also be configured infilterableAttributes.