Solr search policy

Version: 10.3

The Commerce Engine encompasses extensible services that enable you to customize commerce functionality.

Note

Do not extend or inherit from out-of-the-box policies; instead, create your own. You can change the values in a policy by modifying the PolicySet JSON or the Environment JSON, depending on where the policy is defined and then re-running Bootstrap.

The Sorl Search plugin defines the SolrSearchPolicy policy, which defines the connection properties to a Solr search service.

Property

Description / Default Values

SolrUrl

URL to the Solr service instance, for example https://solrUrl 

Note

Starting with Sitecore XC 10.2, the inclusion of the Solr user name and password as part of the SorlUrl value enables Solr basic authentication. For example: https://username:password@solrUrl

IsSolrCloud

Specifies whether the instance of Sorl in use is Sorl Cloud.

Default: false

SolrDateTimeFormatString

Defines a date / time format string for Solr.

Default: "yyyy-MM-dd'T'HH:mm:ss.FFF'Z'"

ConnectionTimeout

Defines the connection time value in millisecond.

Default: -1

Note

Setting this value to -1 makes use of the default SolrNet timeout.

UseSolrAuthentication

Determines whether to use Solr basic authentication.

Default: false

Important

This property is obsolete in Sitecore XC 10.2 and will be removed in a future release. Starting with Sitecore XC 10.2, the inclusion of a Solr user name and password as part of the SolrUrl value enables Sorl basic authentication.

SolrUserName

The user name to use for Solr basic authentication.

Important

This property is obsolete in Sitecore XC 10.2 and will be removed in a future release. For Solr basic authentication, include the Solr user name as part of the SorlUrl property value instead.

SolrPassword

The user password to use for Solr basic authentication.

Important

This property is obsolete in Sitecore XC 10.2 and will be removed in a future release. For Solr basic authentication, include the Solr user password as part of the SorlUrlproperty value instead.

Do you have some feedback for us?

If you have suggestions for improving this article,