Try our conversational search powered by Generative AI!

CMS Search on Plugin Custom Content Repository

Vote:
 

CMS - 11.4.0

Commerce - 11.8.2

Find - 12.7.1

I have created a custom plugin to appear in the left pane:

    [ServiceConfiguration(typeof(IContentRepositoryDescriptor))]
    public class InstallerRepositoryDescriptor : ContentRepositoryDescriptorBase
    {
//
}
    public class InstallerRoot : ContentAssetFolder
    {
        public override void SetDefaultValues(ContentType contentType)
        {
            base.SetDefaultValues(contentType);
        }

        [UIDescriptorRegistration]
        public class InstallerRootDescriptor : UIDescriptor
        {
            public InstallerRootDescriptor() : base("epi-iconPeopleContextual") { }
        }
    }

Etc... this is all working as expected

The issue I am having is using the CMS search box to easily find the content. The site is using Find out of the box and it works for pages without issues, just not this custom repository.

I have used fiddler and when using the search box for Pages the call is:

 /EPiServer/shell/Stores/searchresults/?parameters=%7B%22filterOnDeleted%22%3Atrue%7D&filterOnCulture=false&searchRoots=1&providerId=EPiServer_Find_Cms_SearchProviders_EnterprisePageSearchProvider&searchQuery=terms&dojo.preventCache=1534426139153

But when using the search box on the custom tab the call is:

 /EPiServer/shell/Stores/searchresults/?parameters=%7B%22filterOnDeleted%22%3Atrue%7D&filterOnCulture=false&searchRoots=30&providerId=EPiServer_Find_Commerce_EnterpriseCatalogSearchProvider&searchQuery=andy&dojo.preventCache=1534426153984

The only difference I can see is the providerId, one using Find_Cms_Search and the one not working using Find_Commerce.

Is this a know bug/issue/limitation or do I need to do something to get the CMS Search working on this custom content repository.

I can confirm that this content is indexed correctly in Find

#196071
Edited, Aug 17, 2018 13:04
Vote:
 

You can confirm the context is indexed correctly in Find by using the Find \ Overview interface within the authoring environment. Locate your indexed items through either the search or the content type navigator, and then peek in to the details of the indexed item in the main pane.

#196108
Aug 20, 2018 2:23
Vote:
 

Hi Marcus,

As I stated everything is getting indexed in find and I have confirmed this through the overview interface already.

The issue is the cms search - which uses find - can't find the content.

I am guessing ite because (as per my OP) its using the wrong providerid, for some reason it wants to use

EPiServer_Find_Commerce_EnterpriseCatalogSearchProvider

Rather than 

EPiServer_Find_Cms_SearchProviders_EnterprisePageSearchProvider

This is my guess. Either way the content is in Find but search cannot find it.

#196126
Aug 20, 2018 9:53
* 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.