documentation
documentation copied to clipboard
v1.11: Document template fields now include a new `is_searchable` property
field.is_searchable
allows users to filter out any documents that are not searchable. This changes the default value of documentTemplate
to:
{% for field in fields %}
{% if field.is_searchable and not field.value == nil %}
{{ field.name }}: {{ field.value }}\n
{% endif %}
{% endfor %}
The new default value only applies to embedders created with >=v1.11
Tasks
- [ ] Update
reference/api/settings#embedders-object
- [ ] Update
reference/api/settings#documenttemplate
References
- PRD: https://www.notion.so/meilisearch/v1-11-AI-search-changes-0e37727193884a70999f254fa953ce6e?pvs=4#1dd6f0eee5a1422888e1c5d48e107cd1
- SME: @dureuill