This content is archived. See latest version here

Last updated: Mar 25 2013

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 have feedback on this documentation? Send an email to documentation@episerver.com. For development-related questions and discussions, refer to our Forums on https://world.episerver.com/forum/