Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

Exclude Episerver Forms properties for Episerver Search & Navigation

$
0
0

Hi!

A recent request we got from a client was that the Search & Navigate result from a page containing a FormContainerBlock had its properties indexed and shown for the search page result. Like this:

When trying to exclude these types of settings in the FindInitialization conventions, they do not remove the properties from Find at all.

The following has been tried:

 // Exclude page (and possibly their descendents) from index if the page type inherits an interface or the property is set by an editor
var indexConventions = ContentIndexer.Instance.Conventions;
indexConventions.ForInstancesOf<FormContainerBlock>().ShouldIndex(x => false);
 searchConventions.ForInstancesOf<FormContainerBlock>()
                .ExcludeField(x => x.SubmitSuccessMessage);

How could you achieve this in with a convention setting or ignore rule for Search & Navigation?

Regards

Eric


Viewing all articles
Browse latest Browse all 8020

Trending Articles