If you want to use FindSearchProvider on DXC, you would have to upgrade to latest version (10.0.2 IIRC), which supports the appSettings configuration
Hi Quan
I'm using FindSearchProvider version 10.0.2.
This is my current configuration for Mediachase.Search.config
<add name="FindSearchProvider" type="EPiServer.Commerce.FindSearchProvider.FindSearchProvider, EPiServer.Commerce.FindSearchProvider" serviceUrl="[demo service url]" defaultIndex="[demo index name]" />
How do I ensure the appSetting configuration value is used ?
Thanks
If you have episerver:FindServiceUrl and episerver:FindDefaultIndex in appSettings, those will always be preferred.
Hi Quan, doesn't look like the DXC instance's AppSettings are applied to the Mediachase.Search.config. Whenever I rebuild my demo index, it breaks the search functionality in the other environments which makes me think the demo index is still being used in other environments.
Do I need to create transform files for Mediachase config as such Mediachase.Search.Production.config ?
No, they should not, they should take over -aka FindSearchProvider should read the configuration from appSettings first. If it does not find anything there it would fallback to Mediachase.Search.config. DXC team would set those settings for you, at least if you tell them you want to use FindSearchProvider.
The advice I got from Episerver Support is to create separate transform files for Mediachase.Search.config. They have said episerver:FindServiceUrl and episerver:FindDefaultIndex is defined in the appSettings however it won't apply to the FindSearchProvider settings in Mediachase.Search.config. Interesting that this is not being considered
They will override, not apply. I don't know why you would need to transform files at all. For your development site, add the settings (your dev index) to Mediachase.Search.config and nothing in appSettings. Once you deployed to DXC the managed services team will be responsible for setting the right index information in appSettings for you.
Yes, that's my understanding as well and have setup as such. However the Managed Services team have said that the appSettings don't override the Mediachase.Search.config.
Then they are uninformed https://world.episerver.com/documentation/Release-Notes/ReleaseNote/?releaseNoteId=COM-7054
Commerce 12.11.0
I've configured the Find search provider as per below documentation.
https://world.episerver.com/documentation/developer-guides/commerce/search/Configuring-Episerver-Find-search-provider/
Mediachase.Search.config files on both Commerce Manager and frontend sites is currently setup to use a demo index for local environment.
Additionally web.config has the following
The episerver:FindServiceUrl and episerver:FindDefaultIndex AppSetting is defined on each DXC environment, do these AppSettings take precedence over what's specified in the Mediachase.Search.config ?
Do I need to do anything else to ensure the correct Find index is used on Commerce Manager and frontend sites for the relevant DXC environment ?