Skip to content

Configure Settings

Tomas Norkūnas edited this page Mar 6, 2024 · 9 revisions

This bundle allows you to configure each index as simply as possible.

Configure Settings

Indices settings configuration is located in the same file config/packages/meilisearch.yaml when you configure your search indices:

meilisearch:
    indices:
        -   name: posts
            class: App\Entity\Post
            settings:
                stopWords: ['the', 'a', 'an']
                searchableAttributes: ['genres', 'publishedAt']

For all available settings, check this page which describes all the settings available in Meilisearch and how to configure them.

Update Settings

This bundle by default updates the settings when creating indexes or importing documents to them. But if you need to be explicit, you can provide --update-settings option.

php bin/console meilisearch:import --update-settings

If you want to skip settings update provide --no-update-settings option.

php bin/console meilisearch:import --no-update-settings