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:

  1. In Sitefinity CMS backend, navigate to Administration » Settings » Search.
  2. Under Which search service to use in your site?, select Elasticsearch.
  3. In Elasticsearch URL, enter the root URL of your Elasticsearch server.
    The default value is http://localhost:9200/.
  4. 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. 
  5. 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 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 } }
.

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?

Next article

Search facets