Last updated: Sep 15 2017

Area: Episerver Find Applies to versions: 12 and higher
Other versions:

Customizing default projections

You can customize the projection of unified search results in several ways. The UnifiedSearchRegistry supports these options.


To register the Title for a specific document type.


To register the TypeName for a specific document type.


To register the Url for a specific document type.


To register the ImageUri for a specific document type.


To register the type of the result item for a specific document type.


To register the highlighted excerpt for a specific document type.


To register a filter always applied for UnifiedSearch.


To register a filter always applied for public UnifiedSearch.


If the other projection options are inadequate, the CustomizeProjection extension provides full access to the HitProjectionBuilder.

Highlighting and encoding unified search results

For unified search results, HTML encoding is enabled by default for "title" and "excerpt" fields. The text is encoded before adding the HTML tags that surround highlighted content.

Disabling HTML encoding

To disable HTML encoding, set the EncodeTitle and EncodeExcerpt properties of the HitSpecification to "false." If you do, ensure that the implementation handles the encoding of results, to ensure normal rendering and avoid script injections. You may also implement custom highlighting.

Do you have feedback on this documentation? Send an email to documentation@episerver.com. For development-related questions and discussions, refer to our Forums on https://world.episerver.com/forum/