November Happy Hour will be moved to Thursday December 5th.

DXC - Commerce Config files

Vote:
 

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

<episerver.find
            serviceUrl="http://..."
        defaultIndex="myindex"/>

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 ?

#202225
Mar 20, 2019 7:19
Vote:
 

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 

#202226
Mar 20, 2019 7:39
Vote:
 

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

#202250
Mar 21, 2019 7:43
Vote:
 

If you have episerver:FindServiceUrl and episerver:FindDefaultIndex in appSettings, those will always be preferred. 

#202251
Mar 21, 2019 7:48
Vote:
 

Great, thanks

#202252
Mar 21, 2019 8:00
Vote:
 

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 ?

#202875
Apr 03, 2019 8:49
Vote:
 

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. 

#202876
Apr 03, 2019 8:56
Vote:
 

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  

#202878
Edited, Apr 03, 2019 9:22
Vote:
 

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. 

#202879
Apr 03, 2019 9:25
Vote:
 

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.

#202881
Apr 03, 2019 9:31
Vote:
 

Interesting,  thanks

#202889
Apr 03, 2019 10:07
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.