Use Elasticsearch server

Setup Sitefinity CMS to use Elasticsearch

PREREQUISITES: You must use Elasticsearch server version 8.11.0. 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. Use the Reindex button on the Search basic settings screen to reindex all active search indexes in bulk.

NOTE: Highlighting in Elasticsearch 8.11.0 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 } }
.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?

Next article

Search facets