Elasticray v1.1
ram-pratap edited this page Nov 26, 2014
·
2 revisions
- Java 1.7
- Liferay 6.1/ Liferay 6.2
- Elasticsearch 1.4.0
- Ensure Liferay 6.1/ Liferay 6.2 and Java 1.7 software is installed in your machine.
- Install Elasticsearch 1.4.0 (http://www.elasticsearch.org/download/)
- Configure Elasticsearch server in the Liferay (modify portal-ext.properties)
- Remove solr-web plugin if deployed.
- Copy the elasticray plugin war file to deploy directory of Liferay.
- Place the search portlet in home page and click on 'search' based on keyword 'liferay'.
- Set the logs in DEBUG mode
- You will find the search results in browser and in console you will find following lines showing elasticsearch.
05:13:32,450 DEBUG [http-bio-8080-exec-10][ElasticsearchIndexSearcher:63] Query String {__ "query_string" : {__ "query" : "+(+(companyId:10157) +((+(entryClassName:com.liferay.portal.model.User) +(status:0)) (+(entryClassName:com.liferay.portlet.bookmarks.model.BookmarksEntry) +(status:0)) (+(entryClassName:com.liferay.portlet.bookmarks.model.BookmarksFolder) +(status:0)) (+(entryClassName:com.liferay.portlet.blogs.model.BlogsEntry) +(status:0)) (+(entryClassName:com.liferay.portlet.documentlibrary.model.DLFileEntry) +(status:0) +(hidden:false)) (+ ...... __} [Sanitized]