Search policies
The Sitecore.Commerce.Plugin.Search.SearchPolicy
contributes configuration policies that define common settings applicable to multiple search providers.
Do not extend or inherit from out-of-the-box policies; instead, create your own.
You can change the values of default policies by modifying the PolicySet JSON or the Environment JSON, depending on where the policy is defined, and then re-running Bootstrap.
The following policies can be configured through the Search plugin:
Policy |
Description |
Properties / Default Values |
---|---|---|
|
Defines which View fields to index for a particular entity. Each indexable EntityType can have an IndexableView that the Commerce Engine retrieves to determine which entity properties to index. For a specific view, each ViewProperty (i.e., field) must have an Indexable policy that defines the settings for the index, which fields the index has, their type, whether they are searchable, filterable, and so on. Each field to be indexed must have the following properties defined in the Indexable policy:
The indexing blocks use the values set for the field’s properties to build the index and update/insert documents into the index. Note The isKey property can only be set to true for one field. If multiple fields have the isKey property set to true, validation fails when the minion creates or updates the index. |
SearchScopeName \ Properties \ ConcurrentDictionary<string, IndexableSettings> |
|
Defines the field type mappers. | |
|
Defines the names of the search view actions. |
Search \ "Search" DeleteSearchIndex \"DeleteSearchIndex" UpdateSearchIndex \"UpdateSearchIndex" CreateSearchIndex \"CreateSearchIndex" |
|
Defines the names of the search views. |
Documents \ "Documents" Document \ "Document" Search \ "Search" SearchResults \"SearchResults" SearchResult \ "SearchResult" Indexes \ "Indexes" Index \ "Index" |
|
Provides the ability to further control the amount of data that is sent to the underlying search service.
|
MaxNumberOfRows=1000000 "IndexBatchSize": 100 "DeleteBatchSize": 50 "ConcurrentIndexingOperations": 1 |
|
Defines the type of entity to be added to the index. Indexing minions use the The policy also defines a set of tags that can be used to add or remove data from the search results, and specifies the list to watch for updates to the entity. |
Name \ IncrementalListName \ FullListName \ EntityTypeNames \ DeletedListName \ ResultDetailsTags \List<Tag>() |
|
Defines the settings for the search and search results entity views. When a view is requested, a block in the |
SearchScopeName \ ViewName \ PageSize \ 10 PageSizeOptions \ List<int> { 5, 10, 25, 100 |
|
Defines the index name to use to rebuild sitecore indexes | |
|
Defines whether the index is the master index or not. |
IsMasterIndex (bool.) |
|
Defines the search policy for the SOLR search provider. |
IsSolrCloud\ SolrDateTimeFormatString\ ConnectionTimeout\ UseSolrAuthentication\ SolrUserName\ SolrPassword\ |
Do not extend or inherit from out-of-the-box policies; instead, create your own.
You can change the values of default policies by modifying the PolicySet JSON or the Environment JSON, depending on where the policy is defined, and then re-running Bootstrap.