Change SearchTitle for WebContent - Connector crawler

Vote:
 

Is there any way to change the SearchTitle for WebContent created from connector crawler? 

I would like to replace the value with one Key from the dictionary SearchMetaData.

I have tried the following without sucess

SearchClient.Instance.Conventions.UnifiedSearchRegistry.ForInstanceOf()
                    .ProjectTitleFrom(x => x.MetaDataTitle());
public static string MetaDataTitle(this WebContent content)
{
     IndexValue title = string.Empty;
     content.SearchMetaData.TryGetValue("DC.Title", out title);
     return title.ToString();
}



#143049
Jan 11, 2016 15:07
Vote:
 

I think that the projections are only for when content is indexed, not rendered. So you need to do this in your view or controller instead. Unless you can't change what's rendered for the crawler?

#143062
Jan 11, 2016 18:31
Vote:
 

No I dont have access to change what is renderd for the crawler, but even if I did, how would I know what to change and map those things to specific unifiedsearch fields? 

Can you think of any other way to change for example the SearchTitle for WebContent? 

I spoke to EPiServer Developer support and they sugested that I implemented a scheduled job that reindex all content of the type webContent and add the desired properties. But haveing the connector content sources crawl external sites at given intervalls and then hock up my own scheduled job to "fix" the data seams not quite right. 

#143063
Jan 11, 2016 20:28
Vote:
 

You cannot change/modify what the crawler index using the conventions in Find (the crawler index documents directly into the index and the conventions is only set locally on the client). If you wnat to change the actual value in the index you have to reindex all the WebContent.

#143155
Jan 13, 2016 16:16
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.