Elastic search – integration with Java Web Applications
I am developing a Java Web application (ERP system) I have finished the basic process Now, according to my customer's requirements, we need to implement few search options (i.e. employee, user, invoice, inventory, etc.)
Please give me some good documentation on how to integrate elastic search with Java (spring hibernate) web applications
(if I ask any repeated questions, please point out the correct ones.)
Solution
I don't think there are any tutorials yet I started writing an article a few days ago After completion, it will be published in elasticsearch Org
In other words, I built a web application, scrutmydocs. Its idea is that it may be an example of "how to integrate elasticsearch in web applications" The source code is available at GitHub, so you can find some ideas here
In addition, please note that this project also uses spring and my spring factories for elasticsearch project It can also help you
On Hibernate, in the previous project, I started to add listeners on entities to automatically index or delete documents in elastic search But in the end, I deleted all these things because I didn't think it was the right way On the contrary, whenever I call merge or delete Dao hibernate method, I will call elasticsearch index and delete the method from my application service layer
I hope this can help