Configure Azure Cognitive Search for xConnect
Azure Cognitive Search will be discontinued in the future and Sitecore will no longer provide support for this service in future releases.
Azure Cognitive Search is the default search provider when you install xConnect using the Sitecore Azure Toolkit.
To configure Azure Cognitive Search for xConnect:
-
In the xconnect\App_data\config\sitecore\CollectionSearch folder, remove the
.disabledextension of thesc.Xdb.Collection.IndexReader.AzureSearch.xml.disabledfile. This enables the configuration in the file. -
In the xconnect\App_data\config\sitecore\CollectionSearch folder, add the
.disabledextension to these files:-
sc.Xdb.Collection.IndexReader.SOLR.xml -
sc.Xdb.Collection.WebClient.SOLR.xml
This disables the configuration in the files.
-
-
In the xconnect\App_data\jobs\continuos\IndexWorker\App_data\config\sitecore folder, remove the
.disabledextension from these files:-
\SearchIndexer\sc.Xdb.Collection.IndexWriter.AzureSearch.xml.disabled -
\CollectionSearch\sc.Xdb.Collection.IndexReader.AzureSearch.xml.disabled
This enables the configuration in the files.
-
-
Note
If you use Sitecore XP 9.0.2, or later, and use more than one replica:
In the
\SearchIndexer\sc.Xdb.Collection.IndexWriter.AzureSearch.xmlfile, enable the DataReplicationTimeoutMilliseconds setting. -
In the xconnect\App_data\jobs\continuos\IndexWorker\App_data\config\sitecore folder, add the
.disabledextension to these files:-
\CollectionSearch\sc.Xdb.Collection.IndexReader.SOLR.xml -
\CollectionSearch\sc.Xdb.Collection.WebClient.SOLR.xml -
\SearchIndexer\sc.Xdb.Collection.IndexWriter.SOLR.xml
This disables the configuration in the files.
-
-
In the connection string files
xconnect\App_Config\ConnectionStrings.configandxconnect\App_data\jobs\continuous\IndexWorker\App_config\ConnectionStrings.config, uncomment and update the Azure Cognitive Search connection string. The name of this string iscollection.search:RequestResponse<add name="collection.search" connectionString="serviceUrl=https://[service].search.windows.net/;indexName=[index name];apiKey=[API Key]"/>NoteAzure Cognitive Search for xConnect do not support geo-replicated scenarios, so you cannot specify multiple instances in the
collection.searchconnection string."