Find Index full of FindDocument types

Vote:
 

I'm facing an issue where our Find Index is full of FindDocument document types (EPiServer.Commerce.FindSearchProvider.FindDocument, EPiServer.Commerce.FindSearchProvider, to be precise) and it's more than twice the number of items then the remaining document types.

I found a blog post about indexing catalog content, which we are already doing, and a commenter described that he had the same issue with the double FindDocument items. There have been no further comments since 2014 though: https://world.episerver.com/blogs/Jonas-Bergqvist/Dates/2014/1/Indexing-catalog-content-using-EPiServer-Find-Content-Indexing-Job/

Is there any solution to getting rid of those types from the Index?

We're on version 13.3 of Find.

Best, Johannes

#253357
Apr 16, 2021 13:02
Vote:
 

As you have noticed FindDocument is created by FindSearchProvider, which is likely the case that you have FindSearchProvider configured in Commerce Manager. FindDocument is a wrapper for indexing catalog content in CM, as CM does not know or understand about content types. 

#253393
Apr 17, 2021 6:27
Vote:
 

Hi Quan, thanks for your answer. We do have two Mediachase.Search.config files, one for the Commerce Manager and one for the Web project. They both look like this:

<?xml version="1.0" encoding="utf-8"?>
<Mediachase.Search>
    <SearchProviders defaultProvider="FindSearchProvider">
        <providers>
            <add name="FindSearchProvider"
                 type="EPiServer.Commerce.FindSearchProvider.FindSearchProvider, EPiServer.Commerce.FindSearchProvider"
                 serviceUrl=""
                 defaultIndex=""/>
        </providers>
    </SearchProviders>
    <Indexers basePath="[appDataPath]">
        <add name="catalog"
             type="EPiServer.Commerce.FindSearchProvider.FindSearchIndexBuilder, EPiServer.Commerce.FindSearchProvider" />
    </Indexers>
</Mediachase.Search>

We tried to remove the Indexer from the Commerce Manager config, and the FindDocument did actually disappear for a while but then came back shortly after. Does it have to be configured differently? The documentation doesn't really mention it, but maybe I'm also misunderstanding how it works. I'm not too familiar with Find.

#253525
Apr 19, 2021 7:27
Vote:
 

You should change the defaultProvider to something else than FindSearchProvider - both CM and the frontend/CMS/Web. One possible option is to use the LuceneSearchProvider. Clear your index and reindex should clear them.

I also suggest to do a solution wide (with external files) for FindSearchProvider to make sure you didn't unintentionally leave it somewhere 

#253527
Apr 19, 2021 8:48
Vote:
 

Sorry, I found another Mediachase.Search.config, this time in the Commerce project, not CommerceManager. Here we are using Lucene Search.

Does it need to be excluded here instead, or would it make sense to completely remove the Search from CommerceManager?

#253536
Apr 19, 2021 10:11
Vote:
 

As long as you change the defaultProvider and the Indexers, it's good enough (But if you don't use FindSearchProvider at all, removing it entirely would make sense) 

#253539
Apr 19, 2021 10:18
Vote:
 

Okay, I will give it a try. Thank you very much for your help!

#253540
Apr 19, 2021 10:19
* 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.