Can you supply a delegate to the PageIndexer?

Vote:
 

Got a property on some pagetypes that is a list of ids for keywords. When Indexing I would like to convert this to a list of string so that I'm able to use the keywords in the search.

The dotnet client has a way of adding a delegate for a fieldvalue. (http://find.episerver.com/Documentation/dotnet-api-including-fields) 

But is there something simular for the PageIndexer? I would like the automatic indexing of updated pages to use this.

#65553
Feb 01, 2013 8:22
Vote:
 

All indexers uses the SearchClient.Instance when indexing so if you want to add conventions just use:

SearchClient.Instance.Conventions.ForInstancesOf<YourPage>().IncludeField(x => x.ExtensionMethod());

Regards,

Henrik

#65555
Edited, Feb 01, 2013 9:03
Vote:
 

Great thanks!

#65558
Feb 01, 2013 9:42
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.