Enabling Azure Search
To use xConnect and IndexWorker with Azure Search you need to do a couple of things:
Create Azure Search service in your Azure subscription. Copy the service key which will be needed for connection strings.
Disable SOLR configuration files by renaming them, e.g. to *.disabled
and enable AzureSearch configuration files by removing *.disabled
in the following locations:
xConnectRoot/App_Data/Config/Sitecore/CollectionSearch
xConnectRoot/App_Data/Config/Sitecore/SearchIndexer
xConnectRoot/App_Data/jobs/continuous/IndexWorker/App_Data/Config/Sitecore/CollectionSearch
xConnectRoot/App_Data/jobs/continuous/IndexWorker/App_Data/Config/Sitecore/SearchIndexer
Update collection.search
value in xConnectRoot/App_Config/ConnectionStrings.config
file.
< add name="collection.search" connectionString="serviceUrl=https://[service name].search.windows.net;indexName=xdb;apiKey=[key]" />
Add collection.search
connection string to xConnectRoot/App_Data/jobs/continuous/IndexWorker/App_Config/ConnectionStrings.config
file.
< add name="collection.search" connectionString="serviceUrl=https://[service name].search.windows.net;indexName=xdb;apiKey=[key]" />
Rebuild
Rebuild is not run automatically, but should be started manually by running console app: \XConnectSearchIndexer.exe -rr
. Please take a look at the official documentation for more details.