EPiServer Find index configuration
EPiServer Find is a hosted search solution. To configure the EPiServer Find provider for Commerce, you will first need to create an index at find.episerver.com. Once your index is created, go to the details page for the index, and make a note of the values for "serviceUrl" and "defaultIndex" from the sample web.config.
EPiServer Commerce configuration
To configure the EPiServer Find provider for Commerce, edit the Mediachase.Search.config file for your implementation.
- Set the defaultProvider attribute in the SearchProviders element to FindSearchProvider.
- Ensure the following element exists in the Providers section, and update the serviceUrl
and defaultIndex values to match the values from the index details page at
<add name="FindSearchProvider" type="EPiServer.Commerce.FindSearchProvider.FindSearchProvider, EPiServer.Commerce.FindSearchProvider" serviceUrl="(set the serviceUrl here)" defaultIndex="(set the defaultIndex here)"/>
- Change the element in the indexers section to use appropriate index builder for
the find service:
<Indexers basePath="(the preexisting path)"> <add name="catalog" type="EPiServer.Commerce.FindSearchProvider.FindSearchIndexBuilder, EPiServer.Commerce.FindSearchProvider" /> </Indexers>
- Rebuild your search index from the Commerce Manager search interface.
The Find search provider for Commerce only matches the basic query string against fields of type integer or string. While catalog metafields of type float, double, or decimal may be marked as "Include in Default Search" in the metafield configuration interface, these fields will not be matched against the basic query string.
All other querying (filters, queries, or faceting against specific fields) functionality will work on metafields of type float, double, or decimal.
If matching against these type of data is desired from the basic query string, we recommend storing the data in a string-typed metafield, and marking that field as "Include in Default Search."
- The Search section in the EPiServer CMS SDK