Use Elasticsearch server
Setup Sitefinity CMS to use Elasticsearch
PREREQUISITES: You must use Elasticsearch server version 7.17.4. Note that using any other Elasticsearch version may cause compatibility issues.
To use an Elasticsearch server for Sitefinity search indexes, perform the following:
- In Sitefinity CMS backend, navigate to Administration » Settings » Search.
- Under Which search service to use in your site?, select Elasticsearch.
- In Elasticsearch URL, enter the root URL of your Elasticsearch server.
The default value is http://localhost:9200/
.
- If the Elasticsearch client is using authentication, you must also configure the following properties. If no authentication is configured for the Elasticsearch, leave the following fields blank:
- Elasticsearch Username
- Elasticsearch Password
The password is encrypted and is displayed as any other password in the browser.
- Click Save changes.
After changing the search service or the location of the Elasticsearch server, you must reindex any existing indexes manually, otherwise they will not work.
NOTE: Highlighting in Elasticsearch 7.17.4 is limited to 1,000,000 text characters. To increase this limit, you must make a PUT
request with following code:
PUT /<index_name>/_settings
{ "index" : { "highlight.max_analyzed_offset" : 10000000 } }
.