Index containing types from DynamicContentModelsAssembly (13.2.8)


I have started seeing weird types in the index:

MyProject.Web.Features.Product.Models.DefaultVariationContent_DynamicProxy, DynamicContentModelsAssembly

I also have the correct type indexed, which is:

MyProject.Web.Features.Product.Models.DefaultVariationContent, MyProject.Web

Might this be a bug? If not, how can I get rid of those DynamicProxy types?

Edited, Sep 07, 2020 7:36

Just saw this:

However, we see this for EPiserver.CMS.Core 11.14.2 as well.

Edited, Sep 07, 2020 8:17

We are now on Episerver.CMS.Core 11.20.2 and Episerver.Find 13.3.0 but I can't get rid of these weird types. I clear the index but they keep re-appearing and filling up the index. Only happens on staging though which is a bit strange. Same code and package versions as production.

Edited, Jan 11, 2021 8:02

It looks like this has something to do with the recent IL generator changes. I will ping CMS core team so they can take a look. Thanks for bringing this into our attention 

Jan 11, 2021 9:19

Thanks Quan. Do you have any news on this? This is the index in our staging environment right now. The weird thing is that it does not happen on production, any ideas why?

Jan 22, 2021 8:46

Hi - I reached to Johan, and this is what he wrote

Hmm, that sounds weird, especially that it just happens in one environment. It almost sounds like that environment runs with an older version. Could it be that they have e.g. a local instance running somewhere with older packages (e.g. on a developer box) that is configured to use the same find enviroment, I am thinking that it might then be the local instance that triggers the indexing job locally and then pushes the data to the index 

Jan 22, 2021 8:57

I don't think we have any developer machine configured to use the staging index. The thing is that the invalid entries are added when the indexing job is triggered from the staging server as well.

Jan 22, 2021 10:44
* 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.