>
>
>
> Important
>
>
>
> If you enable CJK analyzers on a server with existing indexed content, you must purge and rebuild the search index in **System Console \> Environment \> Elasticsearch** for the CJK analyzers to take effect on existing posts.
>
>
12. Test the connection from Mattermost to Elasticsearch by running the following command:
> ``` sh
> curl 172.31.80.220:9200
> ```
## Configure Mattermost
Follow these steps to configure Mattermost to use your Elasticsearch server and to generate the post index:
1. Go to **System Console \> Environment \> Elasticsearch**.
2. Set **Enable Elasticsearch Indexing** to `true` to enable the other the settings on the page. Once the configuration is saved, new posts made to the database are automatically indexed on the Elasticsearch server.
3. Ensure **Backend type** is set to `elasticsearch`.