November Happy Hour will be moved to Thursday December 5th.

Indexing additional content when indexing PageData objects?

Vote:
 

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 http://find.episerver.com/Documentation/dotnet-api-including-fields 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?

#90742
Sep 17, 2014 10:39
Vote:
 
#90759
Sep 17, 2014 13:48
Vote:
 

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.

#90767
Sep 17, 2014 15:38
Vote:
 

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());



#90768
Sep 17, 2014 16:02
Vote:
 

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

#90790
Sep 18, 2014 8:56
Vote:
 

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

#90791
Sep 18, 2014 9:06
Vote:
 

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

http://andersnordby.wordpress.com/?attachment_id=733

Absolutely NO sign of the IncludeField method...

#90792
Sep 18, 2014 9:15
Vote:
 

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

#90822
Sep 18, 2014 14:07
Vote:
 
#90862
Edited, Sep 19, 2014 11:46
Vote:
 

My reploy above went to the wrong thread; correct thread is here: http://world.episerver.com/Modules/Forum/Pages/thread.aspx?id=85490&pageIndex=1#reply

#90864
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.