Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.

 

unifiedSearch doesnt find result on page of type FaqItemPage, but Search does

Vote:
 

Hi, I'm having an issue where unifiedSearch doesn't find anything on a certain page type.

I can see the page type is being indexed under Episerver Find in admin.

This code get results of type FAQItemPage:  _epiFindClient.Search).For("episerver").GetContentResult();

While this doesnt find anything of type FAQItemPage : _epiFindClient.UnifiedSearch().For(“episerver”).InAllField().Take(1000).GetResult();

Anybody have any clues on how to debug this?

#185861
Dec 05, 2017 11:43
Vote:
 

Have you done any special settings for unified search?

You do not need to use InAllFields when doing a unified search, but the result should be the same with or without it.

#185863
Dec 05, 2017 12:14
Vote:
 

We do some work to include metadata, but makes no difference if that code is there or not. Example: 

SearchClient.Instance.Conventions.UnifiedSearchRegistry
.ForInstanceOf<FAQItemPage>()
.ProjectMetaDataFrom(x => x.ExtendedMetaData())
.ProjectTitleFrom(x => x.Question);

#185914
Dec 06, 2017 12:00
* 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.