HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In


These examples apply to solutions with the Optimizely Search & Navigation and Optimizely Customized Commerce integration (_EPiServer.Find.Commerce_) installed.

## Excluding CatalogContentBase from being indexed

Creating a POCO class and indexing it in Search & Navigation is easy. The problem is to figure out how to reindex objects when catalog content changes. This is an example of how to ensure that nothing that inherits from CatalogContentBase gets indexed.





## Adding default price, prices, and inventory

You can add desired properties to your POCO class. For example: IEnumerable<Price> Prices, Price DefaultPrice, and IEnumerable<Inventories>. These properties can be populated by using ReadonlyPriceLoader and InventoryLoader.

## Listening for updates

You can override methods that return a delegate for indexing content by creating POCO objects and index them.