Integration Elastic Search with Spring


(steam) #1

Somebody can tell me please, how configure elastic search with spring
framework?

I found this article about spring and ES.


But downloaded code imported like maven project in eclipse does not
work and i don't understand it well.

I think exist more easy way to put all together without templates.
And on this article i found how to embedded the ES jar-file into a Web
Application
http://elasticsearch-users.115913.n3.nabble.com/tutorial-example-of-embedding-td2898482.html

But i'm looking for connect java with remote ES and spring
integration.
I'd appreciate if somebody show me with some example how to configure
java spring for consulting with remote ES.
Or tell me concepts how does it work.

Thank you very much, i hope i can use ES on my project.


(avasilenko) #2

Hello,

You shouldn't take the whole package in github. I've used only factory bean


Works like a charm.
Here's my definition of beans in context : https://gist.github.com/1330194
IMHO the best solution is to start node in client mode (node.client =
true). It will be in the same ES cluster, like other nodes, but won't store
any data in it.

Alexandr Vasilenko

2011/11/1 steam grandebuzon@gmail.com

Somebody can tell me please, how configure elastic search with spring
framework?

I found this article about spring and ES.
http://techo-ecco.com/blog/elasticsearch-with-spring/
But downloaded code imported like maven project in eclipse does not
work and i don't understand it well.

I think exist more easy way to put all together without templates.
And on this article i found how to embedded the ES jar-file into a Web
Application

http://elasticsearch-users.115913.n3.nabble.com/tutorial-example-of-embedding-td2898482.html

But i'm looking for connect java with remote ES and spring
integration.
I'd appreciate if somebody show me with some example how to configure
java spring for consulting with remote ES.
Or tell me concepts how does it work.

Thank you very much, i hope i can use ES on my project.


(system) #3