Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.

 

Loading...
Area: Optimizely CMS
ARCHIVED This content is retired and no longer maintained. See the latest version here.

Recommended reading 

Introduction

This document describes how to work with search queries in EPiServer CMS. By default, EPiServer CMS uses the Lucene Search Engine, supporting full-text search indexing and ranked search results. The search engine itself is based on the ASP.NET provider model meaning you can write your own providers to search servers.

Available Options

The following options are available when implementing search queries in CMS:

SearchDataSource

SearchDataSource can provide PageData objects to your data bound controls in your page templates.

SDK entry for SearchDataSource: EPiServer.Web.WebControls.SearchDataSource

ContentSearchHandler

The ContentSearchHandler is a CMS-specific search handler that handles common scenarios when searching for content. It has methods like GetSearchResults and GetContent to simplify the development process.

SDK entry for ContentSearchHandler: EPiServer.Core.ContentSearchHandler

Custom Queries

For more advanced search scenarios you have the possibility to build your own queries to ask the EPiServer Search Index. This can be done by grouping together different queries to find whatever you are looking for. You can use the following CMS-specific queries:

See Also

For detailed information about search features of the EPiServer platform (for example, other queries available), see the Search section in EPiServer Framework SDK.

Do you find this information helpful? Please log in to provide feedback.

Last updated: Mar 25, 2013

Recommended reading