RE: Use Elasticsearch 6 with Liferay 6.2

C P, modified 7 Years ago. New Member Posts: 5 Join Date: 9/24/18 Recent Posts

Hi, 

I'm using Liferay 6.2, and i can't migrate on Liferay 7.

Is it possible to configure Elasticsearch 6 with my version of Liferay? 

How can i do it?

Thanks

thumbnail
Jorge Díaz, modified 7 Years ago. Liferay Master Posts: 753 Join Date: 1/9/14 Recent Posts

Hi C P,

There is no official support of any Elasticsearch version in Liferay 6.2

 

There is a third-party plugin in Liferay Marketplace (not implemented by Liferay) that allows you to use Elasticsearch in Liferay 6.2: https://web.liferay.com/es/marketplace/-/mp/application/41044606

 

 

But it only supports Elasticsearch 1.4.0.

 

In your message you say you cannot migrate to Liferay 7, is there any special reason about it?

 

Regards,

Jorge Díaz

 

C P, modified 7 Years ago. New Member Posts: 5 Join Date: 9/24/18 Recent Posts

Thanks for the reply!

I've read about the plug-in and  i already know that it won't work in my case.
I'm working on a web app already developed by someone else, and they are currently using this version of liferay. My task is just to figure out, if possible, a way to connect this web app with Elasticsearch 6.

 

Update:

Maybe i could try to use Elasticsearch API, but i have to figure out how to add the dependencies correctly in Liferay.

 

thumbnail
Jorge Díaz, modified 7 Years ago. Liferay Master Posts: 753 Join Date: 1/9/14 Recent Posts

Your only option is to create your own plugin in order to connect to Elasticsearch 6

 

You can use as an example Liferay Solr 4 plugin code:

You will have to replace all Solr client references to Elasticsearch one.


You can also use the code of third-party Elasticsearch 1.4.0 connector, but I don't know where is located its code.

 

Regards,

Jorge

C P, modified 7 Years ago. New Member Posts: 5 Join Date: 9/24/18 Recent Posts

Thank you for the reply!

I will consider this solution then!

Thanks for the help!