Try our conversational search powered by Generative AI!

PageType are not indexing in Episerver Find.



I am using Episerver Find When I see in CMS Edit mode under the overview tab all other types are indexed but none of my page type is getting indexed.Actually i want to index only Blog pages.

So, In my Initilization module I am using 

ContentIndexer.Instance.Conventions.ForInstancesOf().ShouldIndex(x => true);
ContentIndexer.Instance.Conventions.ForInstancesOf().ShouldIndex(x => true);
ContentIndexer.Instance.Conventions.ForInstancesOf().ShouldIndex(x => true);

I also have tried to index content using the EPiServer Find Content Indexing Job. I am getting status Succeeded but with an exception.

Here are my exception log details - 

2017-07-10 16:33:02,847 [147] ERROR EPiServer.Find.Cms.ContentIndexer: IPLND-DTP-165: An exception occurred while indexing content 2577: Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at EPiServer.Find.Cms.CmsUnifiedSearchSetUp.ContentExternalUrl(ContentReference contentLink, CultureInfo contentLanguage, Boolean absoluteUrl)
at EPiServer.Find.Cms.CmsUnifiedSearchSetUp.GetContentUrl(ContentReference contentLink, String language)
at lambda_method(Closure , PageData )

Jul 11, 2017 10:43

That exception message looks like Episerver is failing when trying to add a content item to the index. Its hard to tell from the stack trace if this is for your Blog Page types (BlogStartPage, BlogListPage, BlogItemPage), but as these don't appear in your index that looks likely.

The stack trace suggests that there is an exception when EPiserver is trying to create the external url to the content (this data is stored in the search index). I wonder, do you have any custom routing set up for your blog functionality? If you do, I'm pretty certain that the reason for this exception will be somewhere in those methods. 

As a start you could try removing the custom routing and seeing whether your blog items are indexed correctly.

Jul 11, 2017 11:49
* 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.