Start a new topic
Answered

Elasticsearch 2.x support

Hi,


While setting up VirtoCommerce search with Elasticsearch, I stumbled upon an issue. The indexing task just gets stuck and eventually there's a red message saying 'Error 0' in the Manager application.


Turns out the Search module tries to delete all docs from the index using a method that is unsupported from Elasticsearch 2.x onwards (released Dec 2015). 


It sends a request DELETE default/catalogitem and ElasticSearch responds with No handler found for uri [/default/catalogitem] and method [DELETE]


Here's the relevant info from ES website: Deleting type is unsupported and a related Stackoverflow discussion: DELETE all documents of a type in ElasticSearch 2.1


Do you have any plans to add support for Elasticsearch 2.x+?


Best Answer

Hi, the current version of VC supports 1.7 version of ES and doesn't support 2.x. We do have plans to add support for 2.x of ES.


I'm using VirtoCommerce 2.11.4 running locally and Elasticsearch 2.3.3 running on Azure VM 

Answer

Hi, the current version of VC supports 1.7 version of ES and doesn't support 2.x. We do have plans to add support for 2.x of ES.

Thanks for the quick response, Sasha. Can you share any timeline details?


Additionally, it might be a good idea to mention this limitation in the installation guide/requirements, so that you don't get many questions like this :)

So far it is not high priority feature for us, so it is not planned in for the next sprint. The plan is to migrate to NEST library which supports ES2.x. We do have NEST branch already and implemented for some of the clients, just not migrated it to the platform.


The installation mentions exact version of ES that should be installed, but yes, we should make it a bit more clear. We are planning to migrate docs to Virto Commerce and allow other to suggest editions to documentation.


1 person likes this

You can track implementation progress in this work item https://github.com/VirtoCommerce/vc-platform/issues/360


1 person likes this

Eugeny, Sasha, thanks a lot, this one's cleared up! :)

Login or Signup to post a comment