# Integration Elastic Search with Spring

**URL:** <https://discuss.elastic.co/t/integration-elastic-search-with-spring/5735>\
**Category:** Elasticsearch\
**Created:** [November 1, 2011, 9:04am UTC](https://discuss.elastic.co/t/integration-elastic-search-with-spring/5735 "2011-11-01T09:04:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![steam](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@steam](https://discuss.elastic.co/u/steam)\
**Post date:** [November 1, 2011, 9:04am UTC](https://discuss.elastic.co/t/integration-elastic-search-with-spring/5735/1 "2011-11-01T09:04:07Z")

</div>

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

I found this article about spring and ES.

> **[Virtual Vacay Blog](https://www.virtualvacay.org/blog)**
>
> Virtual Vacay: The Blog offers travelogues and trip tips for your next vacation.

  
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](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.

---

<div class="post-metadata">

**Author:** ![avasilenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/avasilenko/32/2901_2.png) [@avasilenko](https://discuss.elastic.co/u/avasilenko)\
**Post date:** [November 1, 2011, 9:11am UTC](https://discuss.elastic.co/t/integration-elastic-search-with-spring/5735/2 "2011-11-01T09:11:54Z")

</div>

Hello,

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

> <https://github.com/ezbz/projectx/blob/master/org.projectx.elasticsearch/src/main/java/org/projectx/elasticsearch/ElasticsearchNodeFactoryBean.java>

Works like a charm.  
Here's my definition of beans in context : [gist:1330194 · GitHub](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](mailto:grandebuzon@gmail.com)

> Somebody can tell me please, how configure Elasticsearch with spring  
> framework?
> 
> I found this article about spring and ES.  
> [http://techo-ecco.com/blog/elasticsearch-with-spring/](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](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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:50am UTC](https://discuss.elastic.co/t/integration-elastic-search-with-spring/5735/3 "2017-07-06T03:50:18Z")

</div>


