Skip to content

Configure Settings

Clémentine Urquizar edited this page Jul 9, 2020 · 9 revisions

This bundle allows you to configure settings for each index the simple way as possible.

Configure Settings

Indices settings configuration is located in the same file meili_search.yaml when you configure your search indices:

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

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

Update Settings

This bundle offers the --update-settings option of the command meili:import to update the indices settings:

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