http://find.episerver.com/Documentation/unified-search
- The cobbler's children go unshod
Now to your second question:
The Excerpt by default will be either fieldvalues (from SearchSummary, SearchText, SearchAttachment) or highlighted fields (as the above) depending on the HitSpecification.HighlightExcerpt value passed to GetResult. So if you want to change the default you need to change either:
// for field excerpts
client.Conventions.UnifiedSearchRegistry
.CustomizeDefaultProjection(p =>
p.ProjectExcerptUsing<ISearchContent>(spec =>
x => x.SearchTitle + " " + ..maybe another field value)
);
// for highlights
client.Conventions.UnifiedSearchRegistry
.CustomizeDefaultProjection(p =>
p.ProjectHighlightedExcerptUsing<ISearchContent>(spec =>
x => x.SearchText.AsHighlighted(
new HighlightSpec { FragmentSize = spec.ExcerptLength, NumberOfFragments = 1 }) + " " + ...maybe another highlighted field)
);
// to compile you currently also need the following extension
public static HitProjectionBuilder ProjectExcerptUsing<T>(this HitProjectionBuilder builder, Func<HitSpecification, Expression<Func<T, string>>> sourceExpression)
{
return new HitProjectionBuilder(builder, projection => projection.ExcerptProjection = sourceExpression);
}
Edited: the excerpt will be either fieldvalues or highlighted values.
/Henrik
> Btw UnifiedSearchFor yields 0 results when searching at find.episerver.com, no docs available?
I'm facing this case now. Any ideas what could be wrong and where to look for any hint?
Any ideas why excerpt is not being built correctly in my case? http://world.episerver.com/forum/developer-forum/EPiServer-Search/Thread-Container/2016/9/excerpt-being-build-incorrectly/
Is it possible to specify which properties that are included in the excerpt returned from UnifiedSearchFor?
Btw UnifiedSearchFor yields 0 results when searching at find.episerver.com, no docs available?