Can you supply a delegate to the PageIndexer?

Petter Klang
Member since: 2008
 

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
  •  

    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
  • Petter Klang
    Member since: 2008
     

    Great thanks!

    #65558 Feb 01, 2013 9:42