Loading...
Area: Episerver Search & Navigation
Applies to versions: 12 and higher
Other versions:

Customizing serialization

Recommendations [hide]

Serialization converts indexed objects into a form that can persist or be transported. This topic describes how to customize the serialization of indexed objects in Episerver Search & Navigation (formerly Episerver Find). 

Customization methods

The .NET API uses JSON.NET to serialize objects to be indexed. When using the Client class, some customizations to the serialization are made automatically, but further customization is possible. By customizing how objects are serialized, you can include additional fields, exclude fields, handle how fields are serialized, and so on.

You can customize in two ways:

  • By using attributes - you can quickly apply common customizations to classes that you can modify.
  • By customizing conventions used by Client - you can do powerful things like customizing multiple classes at the same time, and including return values from extension methods, without having to modify the classes of the serialized objects.
Do you find this information helpful? Please log in to provide feedback.

Last updated: Oct 31, 2016

Recommendations [hide]