meilisearch / documentation

Meilisearch documentation
https://docs.meilisearch.com
MIT License
147 stars 241 forks source link

v1.11: Document template fields now include a new `is_searchable` property #2992

Closed guimachiavelli closed 1 week ago

guimachiavelli commented 1 month ago

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

References