loading table of contents...

6.3.21. Website Search

Requirements
[Note]Note

For IBM WebSphere Commerce integration scenarios, all search is handled by IBM WCS. CMS content must be crawled by the IBM Solr Search engine. Please refer to the IBM documentation. A configuration file for each example site is part of the CoreMedia LiveContext 2.0 WebSphere Commerce Project Workspace archive (for example, WCDE-ZIP/components/foundation/subcomponents/search/solr/home/droidConfig-cm-aurora-en-US.xml).

In order to make content more accessible for their audience virtually all websites have full-text search capabilities. To improve the search experience some websites also offer features such as search term autocompletion, suggestions in case of misspelled search terms, more advanced filtering options or even metadata based drilldown navigation in search results.

Solution

CoreMedia CMS has built-in integration with the Apache Solr search engine. Blueprint comes with a small abstraction layer that offers unified search access to Solr for all CAE based code. It provides the following features, all based on standard Solr functionality:

  • Full text search: Search for content across all fields

  • Field based filters: Filter results by metadata such as the content type, the site section it belongs to, etc.

  • Facets: Display facets, that is the number of results in a field for certain values

  • Spellcheck suggestion: "Did you mean" suggestions for misspelled terms

  • Search term highlighting: All words are highlighted in your text

  • Validity range filtering: Automatically filter for only visible results (see section Section 6.3.17, “Content Visibility”

  • Filter non-searchable: Automatically filter content that should not be part of search results.

  • Caching: Search results can be optionally cached for a certain amount of time.

The search integration can be found in the modules com.coremedia.blueprint.cae.search and com.coremedia.blueprint.cae.search.solr.