Elastic Search - Integration with Java Web Application

I am developing a Java application (ERP system). I finished the base threads. Now, according to the requirements of my client, we need to implement several search parameters. (i.e. employees, users, invoices, inventory, etc.)
I plan to implement a search engine for this. I feel Elastic search is a good option for my search (please suggest me if there are other good options).

Please offer me some good documentation on how to integrate Elastic Search with the java web application ( Spring + Hibernate ).

(Direct me to the right place if I ask any other question.)

+6
source share
3 answers

I donโ€™t think there is any other textbook. I started writing one a few days ago. Upon completion, it will be published on elasticsearch.org.

However, I created the ScrutMyDocs web application with the idea that it could be an example of โ€œhow to integrate Elasticsearch into a web applicationโ€. The source code is available on Github so you can find a few ideas here.

Also note that this project also uses Spring and my Spring factories for the Elasticsearch project . It can also help you.

About Hibernate, in a previous project, I started adding listeners to entities to automatically index or delete documents in Elasticsearch. But in the end, I deleted all this because I think that this is not the right way to do this. Instead, I called the Elasticsearch index and removed methods from my application service level each time I called the merge or delete DAO Hibernate methods.

Hope this helps

+8
source

You can find a possible approach for integrating it into your application: http://blog.pixxis.be/post/78314594445/how-to-integrate-elasticsearch-into-your-application

Grtz, Geert

+2
source

To create a Java web application using Hibernate ORM, the best solution for integrating Elasticsearch is to use Hibernate Search , as it was developed specifically for this purpose.

The previously accepted answer was great, but now it's outdated (I write this after 4 years).

0
source

Source: https://habr.com/ru/post/944100/


All Articles