Indexing additional content when indexing PageData objects?


I have an EPiServer 7.5+ CMS site with EPiServer Find installed. I also have a custom database containing some relevant metadata, and I would really like some of this metadata to be indexed with the pages. How can I accomplish this?

This old(?) documentation describes something that would work just fine, but I can not find any such thing as IncludeField. Is there any way to include extra fields before indexing a page object? Or, is there an event I could hook up to, making me add relevant data before the page object is indexed?

Sep 17, 2014 10:39
Sep 17, 2014 13:48

Yes, but in my case the whole point was that it was NOT an IContent, but something living in a totally different kind of database.

Sep 17, 2014 15:38

You could also just do the following on application startup, should work for any type:

var findClient = ServiceLocator.Current.GetInstance();
findClient.Conventions.ForInstancesOf().IncludeField(a => a.AnExtensionMethodThatReturnsSomeContent());

Sep 17, 2014 16:02

@Arve: No, you can not. There is no InludeField method any more.

Sep 18, 2014 8:56

IncludeField(...) is still available in EPiServer.Find.ClientConventions.TypeConventionBuilder 

Sep 18, 2014 9:06

Don't seem to be able to insert a screenshot here, but take a look at this:

Absolutely NO sign of the IncludeField method...

Sep 18, 2014 9:15

It is on IClient and not the ContentIndexer. See Arves answer.

Sep 18, 2014 14:07
Edited, Sep 19, 2014 11:46

My reploy above went to the wrong thread; correct thread is here:

Sep 19, 2014 13:19
* 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.