The Episerver platform has sophisticated search functionality which allows you to search through different types of content on a website. You can search for content pages and blocks, files, community objects and products, if Episerver Commerce is installed. The search results are automatically filtered based on access rights, so users only see content to which they have access.
The search is based on the open source search engine Lucene, which is utilized by the different Episerver products when retrieving content. The search is provider-based, making it possible to extend and customize features. You can use the built-in basic search features, or create your own custom filtering methods and queries.
Built-in search features
The following built-in search features are included in Episerver:
- Full-text search features.
- Indexing of any type of content, such as document files, pages and blocks.
- Event-driven indexing, meaning instant updating of index and search results.
- Search results filtered on access-rights.
- “Search-as-you-type,” enhancing the search experience.
Depending on how your Episerver installation is set up and from where you are searching, there are different options:
- Visitors can usually search content through a search field and a search page on the front-end site, as in the Episerver sample templates.
- When editing, the global search is available in the upper right part of global menu. Depending on the configured search providers, this option can search all types of content on the website—pages, blocks, files, and catalog content if you have Episerver Commerce installed.
- When editing, a search option is available at the top of the navigation pane and assets pane, as well as in the link dialog. This option searches for content in the panes and related dialogs.
- You can add items directly from the search result list to for instance a page or a block through drag-and-drop.
Enter a few carefully selected keywords separated by space. If need be, narrow down your search query by adding keywords. For example: episerver product project.
- If you know a page ID, you can search for that page by entering the page ID in the search field.
- When searching for specific phrases, you can combine keywords using quotation marks. Example: “episerver search tips”.
- The search function is case insensitive, so you can use both upper and lowercase letters. Example: New York and new york return the same result.
- You can restrict the search by placing a plus sign + in front of the words that must be found to consider the page a match. Example: +episerver +search +tips.
- Similarly you can restrict the search by placing a minus sign – in front of the words that must not occur to consider the page a match, for example -episerver -search -tips.
- To match part of a word, place an asterisk * at the end of the word. Example: word1* word2 return content with the words word10, word123 and word2, but not word234.
- The boolean operators AND and OR can be used. AND means “I only want documents that contain both/all words”, OR means “I want documents that contain either word, regardless of which one”. Example: episerver AND search returns documents with both words, episerver OR search returns documents with either episerver or search.
The sorting of search results is determined by the search algorithm, which can be customized in many ways. Often, filtering is applied to the results, which can be based on many factors, for instance, categorization of content.
Episerver search has configuration options which are managed from the administrative interface in Episerver CMS. Refer to Episerver's technical documentation for information about search functionality, configuration possibilities, and integration interface.
Extended search with Episerver Find
To build more advanced search features based on visitor behavior, customized filtering and faceted content navigation, you can add Episerver Find to your solution (requires license activation). Refer to the Episerver Find