Can broadlefcommerce replace apache solr with ElasticSearch?

I am trying to use broadleafcommerce and set it up. In researching, I found that it uses Apache Solr . However, I already have ElasticSearch as I currently only use ElasticSearch in my work place. so, I'm curious how if I could replace this custom broadleafcommerce code with ElasticSearch. If possible, I also want to know how long will it take or what will be its difficulty level?

Thanks in advance!

+3


source to share


1 answer


Open source product, you can check the code yourself. Here is the package that will need to make solr independent. As far as I can see there are quite a few dependencies on Solr right now, but maybe you can give it a shot and contribute. After all, the power of open source.

I can’t say exactly how much work will be done, since I don’t know the product and what it does with the data. The solr schema needs to be translated into the corresponding elasticsearch mapping, then the indexer will need to be transformed to push the data to elasticsearch (otherwise, if technically feasible, you could write a river that imports the data into elasticsearch from the framework itself). The last step is to transform the search code along with the faces, highlight, etc.



You (or the people behind the project) might want to take a look at spring data , which now uses the spring-data-solr community and an unofficial elasticsearch implementation .

+4


source







All Articles