---
title: "Solr search policy"
slug: "solr-search-policy"
abstract: "Lists the Solr search policy that defines the connection to a Solr search provider."
---
# Solr search policy

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 to a Solr search service.

| Property | Description / Default Values |
| --- | --- |
| `SolrUrl` | URL to Solr service instance.<br><br>> [!note]<br>> The Solr URL should not contain uppercase characters. |
| `IsSolrCloud` | Specifies whether the instance of Sorl in use it Sorl Cloud.<br><br>Default: `false`<br><br>SolrUrl \ string.Empty<br><br>ConnectionTimeout \ -1<br><br>SolrDateTimeFormatString \ "yyyy-MM-dd'T'HH:mm:ss.FFF'Z'"<br><br>DefaultSearchOnlyStringFields \ true |
| `SolrDateTimeFormatString` | Defines a date / time format string for Solr.<br><br>Default: `"yyyy-MM-dd'T'HH:mm:ss.FFF'Z'"` |
| `ConnectionTimeout` | Defines the connection time value in millisecond.<br><br>Default: `-1`<br><br>> [!note]<br>> Setting this value to -1 makes use of the default SolrNet timeout. |
| `UseSolrAuthentication` | Determines whether to use Solr basic authentication.<br><br>Default: `false`<br><br>> [!note]<br>> When you enable this setting, the policy must also provide provide a username (`SolrUserName`) and password (`SolrPassword`). |
| `SolrUserName` | The user name to use for the Solr basic authentication.(Required when `UseSolrAuthentication` is set to `true`. |
| `SolrPassword` | The user password to use for the Solr basic authentication.(Required when `UseSolrAuthentication` is set to `true`. |