Elastic Search

Elasticsearch is a flexible and powerful open source, distributed, real-time search and analytics engine. -- elasticsearch.org

As of version 7, Liferay Portal will rely on Elasticsearch to index its content. This will enhance the search functionality without breaking compatibility as Elasticsearch is backed up by Lucene, which was used by Liferay Portal previously.


In versions prior to 7 people used to execute Luke to be able to look at the contents of the Lucene index. This helped a lot for diagnosing problems and/or developing indexers.

Now that Elasticsearch is used, Luke cannot be used any more (even if Elasticsearch uses Lucene underneath, it seems that Luke is not able to load the indices). Nevertheless, there's no need to worry as there are a lot of frontends to Elasticsearch. The following is a list of possible frontends to use:

  1. es2unix: A command line frontend to Elasticsearch
  2. elasticsearch-head: A standalone HTML5 application that may be used to connect to Elasticsearch clusters (in the future, this application will be available as an OSGi plugin to be deployed inside Liferay Portal 7.0.0)

The recommended way to peek at Elasticsearch indices is to use elasticsearch-head. Just clone the project from github and open the index.html file in your browser. Then access Liferay Portal's Elasticsearch cluster which should be listening at http://<your Liferay Portal address>:9200 (the default port used by Elasticsearch).

32396 Views Last Modified 24 May 2016 - 17:15:14 By André Oliveira