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
.ProjectTitleFrom(x => x.MetaDataTitle());
public static string MetaDataTitle(this WebContent content)
IndexValue title = string.Empty;
content.SearchMetaData.TryGetValue("DC.Title", out title);
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?
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.
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.