Search Overview

Search is a fundamental component of Liferay. Elasticsearch is bundled with Liferay for testing and development purposes. Production environments require Elasticsearch running on a remote server. Getting Started with Elasticsearch explains remote server setup. You can explore the search functionality immediately, however, using the bundled Elasticsearch engine.

Here are the search features:

  • Full-text search

  • Indexing of all content types (blogs, documents, web content, etc.)

  • Highly configurable search pages

  • A search bar embedded in the header of every page

  • Automatic index synchronization for added, updated, and deleted content

  • Search result filtering by roles and permissions

  • Search suggestions

  • Search result configuration (e.g., filter and sort)

  • Faceted search

  • Enable or disable advanced search syntax (e.g., AND/OR/NOT, wildcards, and more)

Search Pages and Widgets

The default search page (localhost:8080/search) has a practical set of search widgets. It is customizable and based on the global search page template (also customizable).

The search page template is useful.

To add search widgets to a page, click the Add button on the page, select Widgets, and open the Search category:

There are plenty of search widgets.

To learn more, visit Configuring Search Pages or Search Pages and Widgets.

Search Configuration and Administration

In the Control Panel, you can configure search functionality, view connections and field mappings, and perform search index actions.

You can configure search at the system scope in the Control Panel. In the Configuration category, select System SettingsSearch. The search settings page appears.

Search is highly configurable.

You can examine search connections and field mappings, and execute indexes in the search administration screens. Navigate them in the Control Panel, by selecting Search in the Configuration category.

The search admin screens are informative and useful.

Learn more at Search Administration and Tuning.

What’s Next

Explore the search features by Searching for Content. When you’re ready to configure search for production, see Getting Started with Elasticsearch.