# Elastic Search Module for Play! Framework and Java

**URL:** <https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131>\
**Category:** Elasticsearch\
**Created:** [March 20, 2011, 3:10am UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131 "2011-03-20T03:10:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felipera/32/3038_2.png) [@felipera](https://discuss.elastic.co/u/felipera)\
**Post date:** [March 20, 2011, 3:10am UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/1 "2011-03-20T03:10:56Z")

</div>

Guys,

I just released a new Elastic Search module for Java and Play!  
Framework.

[http://geeks.aretotally.in/play-framework-module-elastic-search-distributed-searching-with-json-http-rest-or-java](http://geeks.aretotally.in/play-framework-module-elastic-search-distributed-searching-with-json-http-rest-or-java)

Just the first version but new features will keep coming.

Thank you,  
Felipe

---

<div class="post-metadata">

**Author:** ![K\_B](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@K\_B](https://discuss.elastic.co/u/K_B)\
**Post date:** [March 20, 2011, 10:28am UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/2 "2011-03-20T10:28:55Z")

</div>

Heya,

I just read your blog-post and even I'm not using play (wicket  
instead) I finally were astonished about that you integrated it with  
JPA, meaning you bring it close the the things Compass did.

AFAIK this is also something Shay wanted to bring to ES one day - can  
this be brought to the ES core??? (didn't look at the implementation  
so far);  
That would be a way for the old compass users to finally go to ES  
IMHO;

Thumbs up & Regards

On 20 Mrz., 04:10, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:

> Guys,
> 
> I just released a new Elastic Search module for Java and Play!  
> Framework.
> 
> [http://geeks.aretotally.in/play-framework-module-elastic-search-distr](http://geeks.aretotally.in/play-framework-module-elastic-search-distr)...
> 
> Just the first version but new features will keep coming.
> 
> Thank you,  
> Felipe

---

<div class="post-metadata">

**Author:** ![felipera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felipera/32/3038_2.png) [@felipera](https://discuss.elastic.co/u/felipera)\
**Post date:** [March 20, 2011, 9:04pm UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/3 "2011-03-20T21:04:07Z")

</div>

There are optimizations to be made, currently it sends one message at  
the time. Basically the module I wrote listens for JPA events then  
uses an Elastic Search Adapter to send IndexRequests and  
DeleteRequests to Elastic Search.

Next step is to either do BulkRequests and/or use AMQP in combination  
with ES's river.

To me it would be a honor to contribute to ES core, Shay do you have  
any input here?

Thank you,  
Felipe

On Mar 20, 6:28 am, "K.B." [korbinian.ba...@googlemail.com](mailto:korbinian.ba...@googlemail.com) wrote:

> Heya,
> 
> I just read your blog-post and even I'm not using play (wicket  
> instead) I finally were astonished about that you integrated it with  
> JPA, meaning you bring it close the the things Compass did.
> 
> AFAIK this is also something Shay wanted to bring to ES one day - can  
> this be brought to the ES core??? (didn't look at the implementation  
> so far);  
> That would be a way for the old compass users to finally go to ES  
> IMHO;
> 
> Thumbs up & Regards
> 
> On 20 Mrz., 04:10, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:
> 
> > Guys,
> 
> > I just released a new Elastic Search module for Java and Play!  
> > Framework.
> 
> > [http://geeks.aretotally.in/play-framework-module-elastic-search-distr](http://geeks.aretotally.in/play-framework-module-elastic-search-distr)...
> 
> > Just the first version but new features will keep coming.
> 
> > Thank you,  
> > Felipe

---

<div class="post-metadata">

**Author:** ![felipera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felipera/32/3038_2.png) [@felipera](https://discuss.elastic.co/u/felipera)\
**Post date:** [March 21, 2011, 2:33am UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/4 "2011-03-21T02:33:49Z")

</div>

By the way I just released a new version to the module adding support  
to external instances of Elastic Search.

For more information please visit:  
[http://geeks.aretotally.in/play-framework-module-elastic-search-distributed-searching-with-json-http-rest-or-java](http://geeks.aretotally.in/play-framework-module-elastic-search-distributed-searching-with-json-http-rest-or-java).

On Mar 20, 5:04 pm, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:

> There are optimizations to be made, currently it sends one message at  
> the time. Basically the module I wrote listens for JPA events then  
> uses an Elastic Search Adapter to send IndexRequests and  
> DeleteRequests to Elastic Search.
> 
> Next step is to either do BulkRequests and/or use AMQP in combination  
> with ES's river.
> 
> To me it would be a honor to contribute to ES core, Shay do you have  
> any input here?
> 
> Thank you,  
> Felipe
> 
> On Mar 20, 6:28 am, "K.B." [korbinian.ba...@googlemail.com](mailto:korbinian.ba...@googlemail.com) wrote:
> 
> > Heya,
> 
> > I just read your blog-post and even I'm not using play (wicket  
> > instead) I finally were astonished about that you integrated it with  
> > JPA, meaning you bring it close the the things Compass did.
> 
> > AFAIK this is also something Shay wanted to bring to ES one day - can  
> > this be brought to the ES core??? (didn't look at the implementation  
> > so far);  
> > That would be a way for the old compass users to finally go to ES  
> > IMHO;
> 
> > Thumbs up & Regards
> 
> > On 20 Mrz., 04:10, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:
> 
> > > Guys,
> 
> > > I just released a new Elastic Search module for Java and Play!  
> > > Framework.
> 
> > > [http://geeks.aretotally.in/play-framework-module-elastic-search-distr](http://geeks.aretotally.in/play-framework-module-elastic-search-distr)...
> 
> > > Just the first version but new features will keep coming.
> 
> > > Thank you,  
> > > Felipe

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 21, 2011, 10:05am UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/5 "2011-03-21T10:05:34Z")

</div>

Heya,

Great work!. Never used play framework myself, but heard good things about it from several people.

-shay.banon  
On Monday, March 21, 2011 at 4:33 AM, felipera wrote:

> By the way I just released a new version to the module adding support  
> to external instances of Elastic Search.
> 
> For more information please visit:  
> [http://geeks.aretotally.in/play-framework-module-elastic-search-distributed-searching-with-json-http-rest-or-java](http://geeks.aretotally.in/play-framework-module-elastic-search-distributed-searching-with-json-http-rest-or-java).
> 
> On Mar 20, 5:04 pm, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:
> 
> > There are optimizations to be made, currently it sends one message at  
> > the time. Basically the module I wrote listens for JPA events then  
> > uses an Elastic Search Adapter to send IndexRequests and  
> > DeleteRequests to Elastic Search.
> > 
> > Next step is to either do BulkRequests and/or use AMQP in combination  
> > with ES's river.
> > 
> > To me it would be a honor to contribute to ES core, Shay do you have  
> > any input here?
> > 
> > Thank you,  
> > Felipe
> > 
> > On Mar 20, 6:28 am, "K.B." [korbinian.ba...@googlemail.com](mailto:korbinian.ba...@googlemail.com) wrote:
> > 
> > > Heya,
> > 
> > > I just read your blog-post and even I'm not using play (wicket  
> > > instead) I finally were astonished about that you integrated it with  
> > > JPA, meaning you bring it close the the things Compass did.
> > 
> > > AFAIK this is also something Shay wanted to bring to ES one day - can  
> > > this be brought to the ES core??? (didn't look at the implementation  
> > > so far);  
> > > That would be a way for the old compass users to finally go to ES  
> > > IMHO;
> > 
> > > Thumbs up & Regards
> > 
> > > On 20 Mrz., 04:10, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:
> > 
> > > > Guys,
> > 
> > > > I just released a new Elastic Search module for Java and Play!  
> > > > Framework.
> > 
> > > > [http://geeks.aretotally.in/play-framework-module-elastic-search-distr](http://geeks.aretotally.in/play-framework-module-elastic-search-distr)...
> > 
> > > > Just the first version but new features will keep coming.
> > 
> > > > Thank you,  
> > > > Felipe

---

<div class="post-metadata">

**Author:** ![Alois\_Cochard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alois_cochard/32/3176_2.png) [@Alois\_Cochard](https://discuss.elastic.co/u/Alois_Cochard)\
**Post date:** [March 22, 2011, 8:44am UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/6 "2011-03-22T08:44:17Z")

</div>

Hey,

I'm sure there is some redundant work between this play module and the  
OSEM one I'm actually working on:  
[https://github.com/aloiscochard/elasticsearch](https://github.com/aloiscochard/elasticsearch)

More explanation about it here:  
[http://groups.google.com/a/elasticsearch.com/group/users/browse\_thread/thread/0bbef0c8f29aa33b#](http://groups.google.com/a/elasticsearch.com/group/users/browse_thread/thread/0bbef0c8f29aa33b#)

BTW still waiting for feedback from Shay

But I'v some experience with Play! I did some small project with Siena/  
Scala module so perhaps I can help.

I let you take a look at my code, and tell if you think we can  
collaborate ?

Thanks,

Alois Cochard

> **[Alois Cochard's Blog](http://aloiscochard.blogspot.com)**
>
> Computer Development

[http://twitter.com/aloiscochard](http://twitter.com/aloiscochard)

On Mar 21, 11:05 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Heya,
> 
> Great work!. Never used play framework myself, but heard good things about it from several people.
> 
> -shay.banon
> 
> On Monday, March 21, 2011 at 4:33 AM, felipera wrote:
> 
> > By the way I just released a new version to the module adding support  
> > to external instances of Elastic Search.
> 
> > For more information please visit:  
> > [http://geeks.aretotally.in/play-framework-module-elastic-search-distr](http://geeks.aretotally.in/play-framework-module-elastic-search-distr)....
> 
> > On Mar 20, 5:04 pm, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:
> > 
> > > There are optimizations to be made, currently it sends one message at  
> > > the time. Basically the module I wrote listens for JPA events then  
> > > uses an Elastic Search Adapter to send IndexRequests and  
> > > DeleteRequests to Elastic Search.
> 
> > > Next step is to either do BulkRequests and/or use AMQP in combination  
> > > with ES's river.
> 
> > > To me it would be a honor to contribute to ES core, Shay do you have  
> > > any input here?
> 
> > > Thank you,  
> > > Felipe
> 
> > > On Mar 20, 6:28 am, "K.B." [korbinian.ba...@googlemail.com](mailto:korbinian.ba...@googlemail.com) wrote:
> 
> > > > Heya,
> 
> > > > I just read your blog-post and even I'm not using play (wicket  
> > > > instead) I finally were astonished about that you integrated it with  
> > > > JPA, meaning you bring it close the the things Compass did.
> 
> > > > AFAIK this is also something Shay wanted to bring to ES one day - can  
> > > > this be brought to the ES core??? (didn't look at the implementation  
> > > > so far);  
> > > > That would be a way for the old compass users to finally go to ES  
> > > > IMHO;
> 
> > > > Thumbs up & Regards
> 
> > > > On 20 Mrz., 04:10, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:
> 
> > > > > Guys,
> 
> > > > > I just released a new Elastic Search module for Java and Play!  
> > > > > Framework.
> 
> > > > > [http://geeks.aretotally.in/play-framework-module-elastic-search-distr](http://geeks.aretotally.in/play-framework-module-elastic-search-distr)...
> 
> > > > > Just the first version but new features will keep coming.
> 
> > > > > Thank you,  
> > > > > Felipe

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [March 22, 2011, 8:49am UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/7 "2011-03-22T08:49:59Z")

</div>

Hi,

not sure how much this fits into this topic but some time ago I came across  
Hibernate connector for ES:

> **[GitHub - dadoonet/es-hibernate-connector: Make your Hibernate Search more...](https://github.com/dadoonet/es-hibernate-connector)**
>
> Make your Hibernate Search more Elastic ! WARNING : project suspended ! - GitHub - dadoonet/es-hibernate-connector: Make your Hibernate Search more Elastic ! WARNING : project suspended !

Not sure how much it is production ready but in case you want to take a look  
at ti.

Regards,  
Lukas

On Tue, Mar 22, 2011 at 9:44 AM, Alois Cochard [alois.cochard@gmail.com](mailto:alois.cochard@gmail.com)wrote:

> Hey,
> 
> I'm sure there is some redundant work between this play module and the  
> OSEM one I'm actually working on:  
> [https://github.com/aloiscochard/elasticsearch](https://github.com/aloiscochard/elasticsearch)
> 
> More explanation about it here:
> 
> [http://groups.google.com/a/elasticsearch.com/group/users/browse\_thread/thread/0bbef0c8f29aa33b#](http://groups.google.com/a/elasticsearch.com/group/users/browse_thread/thread/0bbef0c8f29aa33b#)
> 
> BTW still waiting for feedback from Shay
> 
> But I'v some experience with Play! I did some small project with Siena/  
> Scala module so perhaps I can help.
> 
> I let you take a look at my code, and tell if you think we can  
> collaborate ?
> 
> Thanks,
> 
> Alois Cochard  
> [http://aloiscochard.blogspot.com](http://aloiscochard.blogspot.com)  
> [http://twitter.com/aloiscochard](http://twitter.com/aloiscochard)
> 
> On Mar 21, 11:05 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > Heya,
> > 
> > Great work!. Never used play framework myself, but heard good things  
> > about it from several people.
> > 
> > -shay.banon
> > 
> > On Monday, March 21, 2011 at 4:33 AM, felipera wrote:
> > 
> > > By the way I just released a new version to the module adding support  
> > > to external instances of Elastic Search.
> > 
> > > For more information please visit:  
> > > [http://geeks.aretotally.in/play-framework-module-elastic-search-distr](http://geeks.aretotally.in/play-framework-module-elastic-search-distr)..  
> > > ..
> > 
> > > On Mar 20, 5:04 pm, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:
> > > 
> > > > There are optimizations to be made, currently it sends one message at  
> > > > the time. Basically the module I wrote listens for JPA events then  
> > > > uses an Elastic Search Adapter to send IndexRequests and  
> > > > DeleteRequests to Elastic Search.
> > 
> > > > Next step is to either do BulkRequests and/or use AMQP in combination  
> > > > with ES's river.
> > 
> > > > To me it would be a honor to contribute to ES core, Shay do you have  
> > > > any input here?
> > 
> > > > Thank you,  
> > > > Felipe
> > 
> > > > On Mar 20, 6:28 am, "K.B." [korbinian.ba...@googlemail.com](mailto:korbinian.ba...@googlemail.com) wrote:
> > 
> > > > > Heya,
> > 
> > > > > I just read your blog-post and even I'm not using play (wicket  
> > > > > instead) I finally were astonished about that you integrated it  
> > > > > with  
> > > > > JPA, meaning you bring it close the the things Compass did.
> > 
> > > > > AFAIK this is also something Shay wanted to bring to ES one day -  
> > > > > can  
> > > > > this be brought to the ES core??? (didn't look at the  
> > > > > implementation  
> > > > > so far);  
> > > > > That would be a way for the old compass users to finally go to ES  
> > > > > IMHO;
> > 
> > > > > Thumbs up & Regards
> > 
> > > > > On 20 Mrz., 04:10, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:
> > 
> > > > > > Guys,
> > 
> > > > > > I just released a new Elastic Search module for Java and Play!  
> > > > > > Framework.
> > 
> > > > > >
> 
> [http://geeks.aretotally.in/play-framework-module-elastic-search-distr](http://geeks.aretotally.in/play-framework-module-elastic-search-distr)...
> 
> > > > > > Just the first version but new features will keep coming.
> > 
> > > > > > Thank you,  
> > > > > > Felipe

---

<div class="post-metadata">

**Author:** ![dpilato](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dpilato/32/2449_2.png) [@dpilato](https://discuss.elastic.co/u/dpilato)\
**Post date:** [March 22, 2011, 9:59pm UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/8 "2011-03-22T21:59:13Z")

</div>

not sure how much this fits into this topic but some time ago I came across Hibernate connector for ES: https://github.com/dadoonet/es-hibernate-connector Not sure how much it is production ready but in case you want to take a look at it.

Thanks Lukas.

I just start to write this a few weeks ago.  
I push it into my company ES project and we start playing with it as a seam between Hibernate and Elastic Search.

I have to add some more code but let me say that it's a really simple implementation of Hibernate listeners to automatically index Hibernate Entities in Elastic Search.

For the moment, you have to add @ESIndexed(indexName) annotation on the main entity you want to index and to add @JSonSerialize to fields/methods that you really want to index.

I need to write some new annotation as @ESAnalyzer to be able to indicate a specific analyzer for a field.  
I would try to generate some ES schema update when Hibernate SessionFactory starts.

Because I didn't write documentation for the moment, I did not tell much about this project on the mailing list (and because also my english is poor ). But I will be really happy to contribute more.

Take care  
David.

---

<div class="post-metadata">

**Author:** ![felipera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felipera/32/3038_2.png) [@felipera](https://discuss.elastic.co/u/felipera)\
**Post date:** [March 23, 2011, 7:37am UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/9 "2011-03-23T07:37:33Z")

</div>

Shay,

Is jpa integration something we might be able to help you guys with?

I also made very good progress today on an OAuth Provider I am  
planning to use on a couple different places, ES one of them, if that  
helps you guys in any way.

Thank you,  
Felipe

On Mar 22, 5:59 pm, dpilato [david.pil...@douane.finances.gouv.fr](mailto:david.pil...@douane.finances.gouv.fr)  
wrote:

> Lukáš Vlček wrote:
> 
> > not sure how much this fits into this topic but some time ago I came  
> > across  
> > Hibernate connector for ES:  
> > [GitHub - dadoonet/es-hibernate-connector: Make your Hibernate Search more Elastic ! WARNING : project suspended !](https://github.com/dadoonet/es-hibernate-connector)  
> > Not sure how much it is production ready but in case you want to take a  
> > look  
> > at it.
> 
> Thanks Lukas.
> 
> I just start to write this a few weeks ago.  
> I push it into my company ES project and we start playing with it as a seam  
> between Hibernate and Elastic Search.
> 
> I have to add some more code but let me say that it's a really simple  
> implementation of Hibernate listeners to automatically index Hibernate  
> Entities in Elastic Search.
> 
> For the moment, you have to add @ESIndexed(indexName) annotation on the main  
> entity you want to index and to add @JSonSerialize to fields/methods that  
> you really want to index.
> 
> I need to write some new annotation as @ESAnalyzer to be able to indicate a  
> specific analyzer for a field.  
> I would try to generate some ES schema update when Hibernate SessionFactory  
> starts.
> 
> Because I didn't write documentation for the moment, I did not tell much  
> about this project on the mailing list (and because also my english is poor  
> ). But I will be really happy to contribute more.
> 
> Take care  
> David.
> 
> --  
> View this message in context:[http://elasticsearch-users.115913.n3.nabble.com/Elastic-Search-Module](http://elasticsearch-users.115913.n3.nabble.com/Elastic-Search-Module)...  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![felipera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felipera/32/3038_2.png) [@felipera](https://discuss.elastic.co/u/felipera)\
**Post date:** [March 23, 2011, 7:40am UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/10 "2011-03-23T07:40:19Z")

</div>

Hi Alois,

Let me take a look at it, lets def try to help each other out.

Thank you,  
Felipe

On Mar 22, 4:44 am, Alois Cochard [alois.coch...@gmail.com](mailto:alois.coch...@gmail.com) wrote:

> Hey,
> 
> I'm sure there is some redundant work between this play module and the  
> OSEM one I'm actually working on:[https://github.com/aloiscochard/elasticsearch](https://github.com/aloiscochard/elasticsearch)
> 
> More explanation about it here:[http://groups.google.com/a/elasticsearch.com/group/users/browse\_threa](http://groups.google.com/a/elasticsearch.com/group/users/browse_threa)...
> 
> BTW still waiting for feedback from Shay
> 
> But I'v some experience with Play! I did some small project with Siena/  
> Scala module so perhaps I can help.
> 
> I let you take a look at my code, and tell if you think we can  
> collaborate ?
> 
> Thanks,
> 
> Alois Cochardhttp://aloiscochard.blogspot.comhttp://twitter.com/aloiscochard
> 
> On Mar 21, 11:05 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > Heya,
> 
> > Great work!. Never used play framework myself, but heard good things about it from several people.
> 
> > -shay.banon
> 
> > On Monday, March 21, 2011 at 4:33 AM, felipera wrote:
> > 
> > > By the way I just released a new version to the module adding support  
> > > to external instances of Elastic Search.
> 
> > > For more information please visit:  
> > > [http://geeks.aretotally.in/play-framework-module-elastic-search-distr](http://geeks.aretotally.in/play-framework-module-elastic-search-distr)....
> 
> > > On Mar 20, 5:04 pm, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:
> > > 
> > > > There are optimizations to be made, currently it sends one message at  
> > > > the time. Basically the module I wrote listens for JPA events then  
> > > > uses an Elastic Search Adapter to send IndexRequests and  
> > > > DeleteRequests to Elastic Search.
> 
> > > > Next step is to either do BulkRequests and/or use AMQP in combination  
> > > > with ES's river.
> 
> > > > To me it would be a honor to contribute to ES core, Shay do you have  
> > > > any input here?
> 
> > > > Thank you,  
> > > > Felipe
> 
> > > > On Mar 20, 6:28 am, "K.B." [korbinian.ba...@googlemail.com](mailto:korbinian.ba...@googlemail.com) wrote:
> 
> > > > > Heya,
> 
> > > > > I just read your blog-post and even I'm not using play (wicket  
> > > > > instead) I finally were astonished about that you integrated it with  
> > > > > JPA, meaning you bring it close the the things Compass did.
> 
> > > > > AFAIK this is also something Shay wanted to bring to ES one day - can  
> > > > > this be brought to the ES core??? (didn't look at the implementation  
> > > > > so far);  
> > > > > That would be a way for the old compass users to finally go to ES  
> > > > > IMHO;
> 
> > > > > Thumbs up & Regards
> 
> > > > > On 20 Mrz., 04:10, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:
> 
> > > > > > Guys,
> 
> > > > > > I just released a new Elastic Search module for Java and Play!  
> > > > > > Framework.
> 
> > > > > > [http://geeks.aretotally.in/play-framework-module-elastic-search-distr](http://geeks.aretotally.in/play-framework-module-elastic-search-distr)...
> 
> > > > > > Just the first version but new features will keep coming.
> 
> > > > > > Thank you,  
> > > > > > Felipe

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 23, 2011, 10:01am UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/11 "2011-03-23T10:01:10Z")

</div>

Hi,

Yea, it would be great to get both Object-\>Elasticsearch mapping support, and JPA integration, similar to what we did in Compass.  
On Wednesday, March 23, 2011 at 9:40 AM, felipera wrote:

> Hi Alois,
> 
> Let me take a look at it, lets def try to help each other out.
> 
> Thank you,  
> Felipe
> 
> On Mar 22, 4:44 am, Alois Cochard [alois.coch...@gmail.com](mailto:alois.coch...@gmail.com) wrote:
> 
> > Hey,
> > 
> > I'm sure there is some redundant work between this play module and the  
> > OSEM one I'm actually working on:[https://github.com/aloiscochard/elasticsearch](https://github.com/aloiscochard/elasticsearch)
> > 
> > More explanation about it here:[http://groups.google.com/a/elasticsearch.com/group/users/browse\_threa](http://groups.google.com/a/elasticsearch.com/group/users/browse_threa)...
> > 
> > BTW still waiting for feedback from Shay
> > 
> > But I'v some experience with Play! I did some small project with Siena/  
> > Scala module so perhaps I can help.
> > 
> > I let you take a look at my code, and tell if you think we can  
> > collaborate ?
> > 
> > Thanks,
> > 
> > Alois Cochardhttp://aloiscochard.blogspot.comhttp://twitter.com/aloiscochard
> > 
> > On Mar 21, 11:05 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > 
> > > Heya,
> > 
> > > Great work!. Never used play framework myself, but heard good things about it from several people.
> > 
> > > -shay.banon
> > 
> > > On Monday, March 21, 2011 at 4:33 AM, felipera wrote:
> > > 
> > > > By the way I just released a new version to the module adding support  
> > > > to external instances of Elastic Search.
> > 
> > > > For more information please visit:  
> > > > [http://geeks.aretotally.in/play-framework-module-elastic-search-distr](http://geeks.aretotally.in/play-framework-module-elastic-search-distr)....
> > 
> > > > On Mar 20, 5:04 pm, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:
> > > > 
> > > > > There are optimizations to be made, currently it sends one message at  
> > > > > the time. Basically the module I wrote listens for JPA events then  
> > > > > uses an Elastic Search Adapter to send IndexRequests and  
> > > > > DeleteRequests to Elastic Search.
> > 
> > > > > Next step is to either do BulkRequests and/or use AMQP in combination  
> > > > > with ES's river.
> > 
> > > > > To me it would be a honor to contribute to ES core, Shay do you have  
> > > > > any input here?
> > 
> > > > > Thank you,  
> > > > > Felipe
> > 
> > > > > On Mar 20, 6:28 am, "K.B." [korbinian.ba...@googlemail.com](mailto:korbinian.ba...@googlemail.com) wrote:
> > 
> > > > > > Heya,
> > 
> > > > > > I just read your blog-post and even I'm not using play (wicket  
> > > > > > instead) I finally were astonished about that you integrated it with  
> > > > > > JPA, meaning you bring it close the the things Compass did.
> > 
> > > > > > AFAIK this is also something Shay wanted to bring to ES one day - can  
> > > > > > this be brought to the ES core??? (didn't look at the implementation  
> > > > > > so far);  
> > > > > > That would be a way for the old compass users to finally go to ES  
> > > > > > IMHO;
> > 
> > > > > > Thumbs up & Regards
> > 
> > > > > > On 20 Mrz., 04:10, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:
> > 
> > > > > > > Guys,
> > 
> > > > > > > I just released a new Elastic Search module for Java and Play!  
> > > > > > > Framework.
> > 
> > > > > > > [http://geeks.aretotally.in/play-framework-module-elastic-search-distr](http://geeks.aretotally.in/play-framework-module-elastic-search-distr)...
> > 
> > > > > > > Just the first version but new features will keep coming.
> > 
> > > > > > > Thank you,  
> > > > > > > Felipe

---

<div class="post-metadata">

**Author:** ![Alois\_Cochard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alois_cochard/32/3176_2.png) [@Alois\_Cochard](https://discuss.elastic.co/u/Alois_Cochard)\
**Post date:** [March 23, 2011, 1:35pm UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/12 "2011-03-23T13:35:27Z")

</div>

@David  
I've already created new annotation (compass like) to define analyser,  
etc ... would be nice if Shay take a look on it to validate them, you  
can find them here:  
[https://github.com/aloiscochard/elasticsearch/tree/master/modules/elasticsearch/src/main/java/org/elasticsearch/osem/annotations](https://github.com/aloiscochard/elasticsearch/tree/master/modules/elasticsearch/src/main/java/org/elasticsearch/osem/annotations)

I think you can integrate your code in the OSEM part of the code, or  
made a separate Hibernate module that use my annotations... don't know  
exactly but we must definitly work together I've already made all the  
mapping part !!!

I mean I have coded the system to generate the mapping from annotation  
(just added support for custom analyzer yesterday, but not yet pushed  
to my repository).

Take a look at this integration test to understand what's actually  
possible with OSEM:  
[https://github.com/aloiscochard/elasticsearch/blob/master/modules/elasticsearch/src/test/java/org/elasticsearch/osem/integration/ObjectContextIntegrationTest.java](https://github.com/aloiscochard/elasticsearch/blob/master/modules/elasticsearch/src/test/java/org/elasticsearch/osem/integration/ObjectContextIntegrationTest.java)

@Felipe  
I'm sure we can extract JPA integration from the play module to put it  
in elastic-search and link it with the code I already created for the  
OSEM module, and then limit the play module with only code for Play  
integration and nothing related to JPA.

@All

We must definitly work together, I was pretty busy last days but I  
hope to work on ES this week-end, I can try to integrate yours code to  
my ES fork (which aim is to add OSEM -Compass like- feature).

Let me know if you have time to work on this, and what you think of my  
code. I'm sure there is lot of room for improvment... but that's a  
good start and I'll used in production soon for indexing relatively  
big and complex model.

I've just added support for interface and polymorphism... must push it  
this evening, or at least before end of week !

Cheers,

Alois Cochard

> **[Alois Cochard's Blog](http://aloiscochard.blogspot.com)**
>
> Computer Development

[http://twitter.com/aloiscochard](http://twitter.com/aloiscochard)

On Mar 23, 11:01 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Hi,
> 
> Yea, it would be great to get both Object-\>Elasticsearch mapping support, and JPA integration, similar to what we did in Compass.
> 
> On Wednesday, March 23, 2011 at 9:40 AM, felipera wrote:
> 
> > Hi Alois,
> 
> > Let me take a look at it, lets def try to help each other out.
> 
> > Thank you,  
> > Felipe
> 
> > On Mar 22, 4:44 am, Alois Cochard [alois.coch...@gmail.com](mailto:alois.coch...@gmail.com) wrote:
> > 
> > > Hey,
> 
> > > I'm sure there is some redundant work between this play module and the  
> > > OSEM one I'm actually working on:[https://github.com/aloiscochard/elasticsearch](https://github.com/aloiscochard/elasticsearch)
> 
> > > More explanation about it here:[http://groups.google.com/a/elasticsearch.com/group/users/browse\_threa](http://groups.google.com/a/elasticsearch.com/group/users/browse_threa)...
> 
> > > BTW still waiting for feedback from Shay
> 
> > > But I'v some experience with Play! I did some small project with Siena/  
> > > Scala module so perhaps I can help.
> 
> > > I let you take a look at my code, and tell if you think we can  
> > > collaborate ?
> 
> > > Thanks,
> 
> > > Alois Cochardhttp://aloiscochard.blogspot.comhttp://twitter.com/aloiscochard
> 
> > > On Mar 21, 11:05 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > > > Heya,
> 
> > > > Great work!. Never used play framework myself, but heard good things about it from several people.
> 
> > > > -shay.banon
> 
> > > > On Monday, March 21, 2011 at 4:33 AM, felipera wrote:
> > > > 
> > > > > By the way I just released a new version to the module adding support  
> > > > > to external instances of Elastic Search.
> 
> > > > > For more information please visit:  
> > > > > [http://geeks.aretotally.in/play-framework-module-elastic-search-distr](http://geeks.aretotally.in/play-framework-module-elastic-search-distr)....
> 
> > > > > On Mar 20, 5:04 pm, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:
> > > > > 
> > > > > > There are optimizations to be made, currently it sends one message at  
> > > > > > the time. Basically the module I wrote listens for JPA events then  
> > > > > > uses an Elastic Search Adapter to send IndexRequests and  
> > > > > > DeleteRequests to Elastic Search.
> 
> > > > > > Next step is to either do BulkRequests and/or use AMQP in combination  
> > > > > > with ES's river.
> 
> > > > > > To me it would be a honor to contribute to ES core, Shay do you have  
> > > > > > any input here?
> 
> > > > > > Thank you,  
> > > > > > Felipe
> 
> > > > > > On Mar 20, 6:28 am, "K.B." [korbinian.ba...@googlemail.com](mailto:korbinian.ba...@googlemail.com) wrote:
> 
> > > > > > > Heya,
> 
> > > > > > > I just read your blog-post and even I'm not using play (wicket  
> > > > > > > instead) I finally were astonished about that you integrated it with  
> > > > > > > JPA, meaning you bring it close the the things Compass did.
> 
> > > > > > > AFAIK this is also something Shay wanted to bring to ES one day - can  
> > > > > > > this be brought to the ES core??? (didn't look at the implementation  
> > > > > > > so far);  
> > > > > > > That would be a way for the old compass users to finally go to ES  
> > > > > > > IMHO;
> 
> > > > > > > Thumbs up & Regards
> 
> > > > > > > On 20 Mrz., 04:10, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:
> 
> > > > > > > > Guys,
> 
> > > > > > > > I just released a new Elastic Search module for Java and Play!  
> > > > > > > > Framework.
> 
> > > > > > > > [http://geeks.aretotally.in/play-framework-module-elastic-search-distr](http://geeks.aretotally.in/play-framework-module-elastic-search-distr)...
> 
> > > > > > > > Just the first version but new features will keep coming.
> 
> > > > > > > > Thank you,  
> > > > > > > > Felipe

---

<div class="post-metadata">

**Author:** ![Alois\_Cochard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alois_cochard/32/3176_2.png) [@Alois\_Cochard](https://discuss.elastic.co/u/Alois_Cochard)\
**Post date:** [March 23, 2011, 1:37pm UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/13 "2011-03-23T13:37:36Z")

</div>

Just wanna add that we can perhaps schedule a chat session one of  
these days ?

Or at least a new thread about collaboration on OSEM, let me know what  
you think fellow hackers 😉

Cheers,

On Mar 23, 2:35 pm, Alois Cochard [alois.coch...@gmail.com](mailto:alois.coch...@gmail.com) wrote:

> @David  
> I've already created new annotation (compass like) to define analyser,  
> etc ... would be nice if Shay take a look on it to validate them, you  
> can find them here:[https://github.com/aloiscochard/elasticsearch/tree/master/modules/ela](https://github.com/aloiscochard/elasticsearch/tree/master/modules/ela)...
> 
> I think you can integrate your code in the OSEM part of the code, or  
> made a separate Hibernate module that use my annotations... don't know  
> exactly but we must definitly work together I've already made all the  
> mapping part !!!
> 
> I mean I have coded the system to generate the mapping from annotation  
> (just added support for custom analyzer yesterday, but not yet pushed  
> to my repository).
> 
> Take a look at this integration test to understand what's actually  
> possible with OSEM:[https://github.com/aloiscochard/elasticsearch/blob/master/modules/ela](https://github.com/aloiscochard/elasticsearch/blob/master/modules/ela)...
> 
> @Felipe  
> I'm sure we can extract JPA integration from the play module to put it  
> in elastic-search and link it with the code I already created for the  
> OSEM module, and then limit the play module with only code for Play  
> integration and nothing related to JPA.
> 
> @All
> 
> We must definitly work together, I was pretty busy last days but I  
> hope to work on ES this week-end, I can try to integrate yours code to  
> my ES fork (which aim is to add OSEM -Compass like- feature).
> 
> Let me know if you have time to work on this, and what you think of my  
> code. I'm sure there is lot of room for improvment... but that's a  
> good start and I'll used in production soon for indexing relatively  
> big and complex model.
> 
> I've just added support for interface and polymorphism... must push it  
> this evening, or at least before end of week !
> 
> Cheers,
> 
> Alois Cochardhttp://aloiscochard.blogspot.comhttp://twitter.com/aloiscochard
> 
> On Mar 23, 11:01 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > Hi,
> 
> > Yea, it would be great to get both Object-\>Elasticsearch mapping support, and JPA integration, similar to what we did in Compass.
> 
> > On Wednesday, March 23, 2011 at 9:40 AM, felipera wrote:
> > 
> > > Hi Alois,
> 
> > > Let me take a look at it, lets def try to help each other out.
> 
> > > Thank you,  
> > > Felipe
> 
> > > On Mar 22, 4:44 am, Alois Cochard [alois.coch...@gmail.com](mailto:alois.coch...@gmail.com) wrote:
> > > 
> > > > Hey,
> 
> > > > I'm sure there is some redundant work between this play module and the  
> > > > OSEM one I'm actually working on:[https://github.com/aloiscochard/elasticsearch](https://github.com/aloiscochard/elasticsearch)
> 
> > > > More explanation about it here:[http://groups.google.com/a/elasticsearch.com/group/users/browse\_threa](http://groups.google.com/a/elasticsearch.com/group/users/browse_threa)...
> 
> > > > BTW still waiting for feedback from Shay
> 
> > > > But I'v some experience with Play! I did some small project with Siena/  
> > > > Scala module so perhaps I can help.
> 
> > > > I let you take a look at my code, and tell if you think we can  
> > > > collaborate ?
> 
> > > > Thanks,
> 
> > > > Alois Cochardhttp://aloiscochard.blogspot.comhttp://twitter.com/aloiscochard
> 
> > > > On Mar 21, 11:05 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > > > > Heya,
> 
> > > > > Great work!. Never used play framework myself, but heard good things about it from several people.
> 
> > > > > -shay.banon
> 
> > > > > On Monday, March 21, 2011 at 4:33 AM, felipera wrote:
> > > > > 
> > > > > > By the way I just released a new version to the module adding support  
> > > > > > to external instances of Elastic Search.
> 
> > > > > > For more information please visit:  
> > > > > > [http://geeks.aretotally.in/play-framework-module-elastic-search-distr](http://geeks.aretotally.in/play-framework-module-elastic-search-distr)....
> 
> > > > > > On Mar 20, 5:04 pm, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:
> > > > > > 
> > > > > > > There are optimizations to be made, currently it sends one message at  
> > > > > > > the time. Basically the module I wrote listens for JPA events then  
> > > > > > > uses an Elastic Search Adapter to send IndexRequests and  
> > > > > > > DeleteRequests to Elastic Search.
> 
> > > > > > > Next step is to either do BulkRequests and/or use AMQP in combination  
> > > > > > > with ES's river.
> 
> > > > > > > To me it would be a honor to contribute to ES core, Shay do you have  
> > > > > > > any input here?
> 
> > > > > > > Thank you,  
> > > > > > > Felipe
> 
> > > > > > > On Mar 20, 6:28 am, "K.B." [korbinian.ba...@googlemail.com](mailto:korbinian.ba...@googlemail.com) wrote:
> 
> > > > > > > > Heya,
> 
> > > > > > > > I just read your blog-post and even I'm not using play (wicket  
> > > > > > > > instead) I finally were astonished about that you integrated it with  
> > > > > > > > JPA, meaning you bring it close the the things Compass did.
> 
> > > > > > > > AFAIK this is also something Shay wanted to bring to ES one day - can  
> > > > > > > > this be brought to the ES core??? (didn't look at the implementation  
> > > > > > > > so far);  
> > > > > > > > That would be a way for the old compass users to finally go to ES  
> > > > > > > > IMHO;
> 
> > > > > > > > Thumbs up & Regards
> 
> > > > > > > > On 20 Mrz., 04:10, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:
> 
> > > > > > > > > Guys,
> 
> > > > > > > > > I just released a new Elastic Search module for Java and Play!  
> > > > > > > > > Framework.
> 
> > > > > > > > > [http://geeks.aretotally.in/play-framework-module-elastic-search-distr](http://geeks.aretotally.in/play-framework-module-elastic-search-distr)...
> 
> > > > > > > > > Just the first version but new features will keep coming.
> 
> > > > > > > > > Thank you,  
> > > > > > > > > Felipe

---

<div class="post-metadata">

**Author:** ![dpilato](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dpilato/32/2449_2.png) [@dpilato](https://discuss.elastic.co/u/dpilato)\
**Post date:** [March 23, 2011, 2:29pm UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/14 "2011-03-23T14:29:24Z")

</div>

Alois,

I will be very pleased to work with you on that project as you are really  
far ahead on this.  
I was wondering at first if I must reuse the Hibernate Search annotations  
instead of redefining what already exists.

So I have the same question about your annotations, even if I know that  
HBSearch annotations are really closed to Lucene way of thinking...

I mean : is the project an Elastic Search plugin (so package name is  
org.elasticsearch.osem) or is the project an Hibernate Plugin (and ES  
client) (so package name should be like org.hibernate.plugin.es) ?

Whatever. I would be happy to contribute.

What about starting a new clean Git Repo without forking ES as I don't think  
that we contribute directly to ES but only as ES client ?

I think that you're French don't you ? So if nobody else want to work on it,  
I suggest that we have a private discuss or chat session in French (easier  
for me !) and try to find the best way of working together on it and about  
some technical stuff.

Take care,  
David.

-----Message d'origine-----  
De : Alois Cochard [[mailto:alois.cochard@gmail.com](mailto:alois.cochard@gmail.com)]  
Envoyé : mercredi 23 mars 2011 14:35  
À : users  
Objet : Re: Elastic Search Module for Play! Framework and Java

@David  
I've already created new annotation (compass like) to define analyser, etc  
... would be nice if Shay take a look on it to validate them, you can find  
them here:  
[https://github.com/aloiscochard/elasticsearch/tree/master/modules/elasticsea](https://github.com/aloiscochard/elasticsearch/tree/master/modules/elasticsea)  
rch/src/main/java/org/elasticsearch/osem/annotations

I think you can integrate your code in the OSEM part of the code, or made a  
separate Hibernate module that use my annotations... don't know exactly but  
we must definitly work together I've already made all the mapping part !!!

I mean I have coded the system to generate the mapping from annotation (just  
added support for custom analyzer yesterday, but not yet pushed to my  
repository).

Take a look at this integration test to understand what's actually possible  
with OSEM:  
[https://github.com/aloiscochard/elasticsearch/blob/master/modules/elasticsea](https://github.com/aloiscochard/elasticsearch/blob/master/modules/elasticsea)  
rch/src/test/java/org/elasticsearch/osem/integration/ObjectContextIntegratio  
nTest.java

@Felipe  
I'm sure we can extract JPA integration from the play module to put it in  
elastic-search and link it with the code I already created for the OSEM  
module, and then limit the play module with only code for Play integration  
and nothing related to JPA.

@All

We must definitly work together, I was pretty busy last days but I hope to  
work on ES this week-end, I can try to integrate yours code to my ES fork  
(which aim is to add OSEM -Compass like- feature).

Let me know if you have time to work on this, and what you think of my code.  
I'm sure there is lot of room for improvment... but that's a good start and  
I'll used in production soon for indexing relatively big and complex model.

I've just added support for interface and polymorphism... must push it this  
evening, or at least before end of week !

Cheers,

Alois Cochard

> **[Alois Cochard's Blog](http://aloiscochard.blogspot.com)**
>
> Computer Development

  
[http://twitter.com/aloiscochard](http://twitter.com/aloiscochard)

---

<div class="post-metadata">

**Author:** ![Alois\_Cochard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alois_cochard/32/3176_2.png) [@Alois\_Cochard](https://discuss.elastic.co/u/Alois_Cochard)\
**Post date:** [March 23, 2011, 2:54pm UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/15 "2011-03-23T14:54:19Z")

</div>

Hello David,

I've forked ES to create the OSEM component after a long chat with  
Shay about how to do it.

I was thinking doing it as an external module, but Shay explained me  
that he want the OSEM feature directly in ES and it's far easier to  
integrate it at a low level (I mean to be used directly by ES Java  
API). I think it will be the same for JPA... but I agree with you...  
not for Hibernate.

I'll try to find some time to have a chat directly with Shay ASAP,  
because it's far easier than sending 20 emails, but he could surely  
affirm/infirm my points rapidly.

So I see it as an Hibernate plugin, but dependent on the OSEM part of  
ES, since the OSEM code isn't integrated in ES yet, would be good if  
the Hibernate module use my fork.

I'll take a look at you code this week-end but I must admit that I'm  
far from an Hibernate expert (more used to JPA/JDO), as far as I  
understand your actual code ([https://github.com/dadoonet/es-hibernate-](https://github.com/dadoonet/es-hibernate-)  
connector/) is already a Hibernate plugin, so we can work together  
using this codebase (I think it's good if you are project leader on  
the plugin, since you have better Hibernate knowledge and... you use  
it ! you are the first able to fix it), and if we need to add some  
feature that aren't Hibernate specific we do it in my fork, and we  
must try to re-use OSEM code as much as possible.

Will be a pleasure to collaborate but i must take a deeper look at  
your plugin before know how to move forward,

BTW, I speak french but I'm swiss 😉 - french part- so yeah not a  
problem if you prefer to communicate in french.

I recontact you by e-mail in french when I'm more comfortable with  
your code.

Thanks for you help, looking forward to collaborate !

Cheers,

On Mar 23, 3:29 pm, David Pilato  
[david.pil...@douane.finances.gouv.fr](mailto:david.pil...@douane.finances.gouv.fr) wrote:

> Alois,
> 
> I will be very pleased to work with you on that project as you are really  
> far ahead on this.  
> I was wondering at first if I must reuse the Hibernate Search annotations  
> instead of redefining what already exists.
> 
> So I have the same question about your annotations, even if I know that  
> HBSearch annotations are really closed to Lucene way of thinking...
> 
> I mean : is the project an Elastic Search plugin (so package name is  
> org.elasticsearch.osem) or is the project an Hibernate Plugin (and ES  
> client) (so package name should be like org.hibernate.plugin.es) ?
> 
> Whatever. I would be happy to contribute.
> 
> What about starting a new clean Git Repo without forking ES as I don't think  
> that we contribute directly to ES but only as ES client ?
> 
> I think that you're French don't you ? So if nobody else want to work on it,  
> I suggest that we have a private discuss or chat session in French (easier  
> for me !) and try to find the best way of working together on it and about  
> some technical stuff.
> 
> Take care,  
> David.
> 
> -----Message d'origine-----  
> De : Alois Cochard [[mailto:alois.coch...@gmail.com](mailto:alois.coch...@gmail.com)]  
> Envoyé : mercredi 23 mars 2011 14:35  
> À : users  
> Objet : Re: Elastic Search Module for Play! Framework and Java
> 
> @David  
> I've already created new annotation (compass like) to define analyser, etc  
> ... would be nice if Shay take a look on it to validate them, you can find  
> them here:[https://github.com/aloiscochard/elasticsearch/tree/master/modules/ela](https://github.com/aloiscochard/elasticsearch/tree/master/modules/ela)...  
> rch/src/main/java/org/elasticsearch/osem/annotations
> 
> I think you can integrate your code in the OSEM part of the code, or made a  
> separate Hibernate module that use my annotations... don't know exactly but  
> we must definitly work together I've already made all the mapping part !!!
> 
> I mean I have coded the system to generate the mapping from annotation (just  
> added support for custom analyzer yesterday, but not yet pushed to my  
> repository).
> 
> Take a look at this integration test to understand what's actually possible  
> with OSEM:[https://github.com/aloiscochard/elasticsearch/blob/master/modules/ela](https://github.com/aloiscochard/elasticsearch/blob/master/modules/ela)...  
> rch/src/test/java/org/elasticsearch/osem/integration/ObjectContextIntegrati o  
> nTest.java
> 
> @Felipe  
> I'm sure we can extract JPA integration from the play module to put it in  
> elastic-search and link it with the code I already created for the OSEM  
> module, and then limit the play module with only code for Play integration  
> and nothing related to JPA.
> 
> @All
> 
> We must definitly work together, I was pretty busy last days but I hope to  
> work on ES this week-end, I can try to integrate yours code to my ES fork  
> (which aim is to add OSEM -Compass like- feature).
> 
> Let me know if you have time to work on this, and what you think of my code.  
> I'm sure there is lot of room for improvment... but that's a good start and  
> I'll used in production soon for indexing relatively big and complex model.
> 
> I've just added support for interface and polymorphism... must push it this  
> evening, or at least before end of week !
> 
> Cheers,
> 
> Alois Cochardhttp://aloiscochard.blogspot.comhttp://twitter.com/aloiscochard

---

<div class="post-metadata">

**Author:** ![dpilato](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dpilato/32/2449_2.png) [@dpilato](https://discuss.elastic.co/u/dpilato)\
**Post date:** [March 23, 2011, 3:42pm UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/16 "2011-03-23T15:42:41Z")

</div>

I understand and agree with that point of view.  
The only thing I need is a public SNAPSHOT version with the OSEM annotations  
(so, a jar from your fork). Or perhaps I need to compile it on my side...  
But I'm not sure that I can do it (I'm a maven user and I don't know gradle

- I should ;-)).

Is it possible for you to build it and publish it somewhere ?

I will look at your fork in next days and will try to find out how to  
generate JSON from entities with the test unit you provided.

So let's talk about it later through direct mails 😉

Cheers

-----Message d'origine-----  
De : Alois Cochard [[mailto:alois.cochard@gmail.com](mailto:alois.cochard@gmail.com)]  
Envoyé : mercredi 23 mars 2011 15:54  
À : users  
Objet : Re: Elastic Search Module for Play! Framework and Java

Hello David,

I've forked ES to create the OSEM component after a long chat with Shay  
about how to do it.

I was thinking doing it as an external module, but Shay explained me that he  
want the OSEM feature directly in ES and it's far easier to integrate it at  
a low level (I mean to be used directly by ES Java API). I think it will be  
the same for JPA... but I agree with you...  
not for Hibernate.

I'll try to find some time to have a chat directly with Shay ASAP, because  
it's far easier than sending 20 emails, but he could surely affirm/infirm my  
points rapidly.

So I see it as an Hibernate plugin, but dependent on the OSEM part of ES,  
since the OSEM code isn't integrated in ES yet, would be good if the  
Hibernate module use my fork.

I'll take a look at you code this week-end but I must admit that I'm far  
from an Hibernate expert (more used to JPA/JDO), as far as I understand your  
actual code ([https://github.com/dadoonet/es-hibernate-](https://github.com/dadoonet/es-hibernate-)  
connector/) is already a Hibernate plugin, so we can work together using  
this codebase (I think it's good if you are project leader on the plugin,  
since you have better Hibernate knowledge and... you use it ! you are the  
first able to fix it), and if we need to add some feature that aren't  
Hibernate specific we do it in my fork, and we must try to re-use OSEM code  
as much as possible.

Will be a pleasure to collaborate but i must take a deeper look at your  
plugin before know how to move forward,

BTW, I speak french but I'm swiss 😉 - french part- so yeah not a problem if  
you prefer to communicate in french.

I recontact you by e-mail in french when I'm more comfortable with your  
code.

Thanks for you help, looking forward to collaborate !

Cheers,

---

<div class="post-metadata">

**Author:** ![felipera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felipera/32/3038_2.png) [@felipera](https://discuss.elastic.co/u/felipera)\
**Post date:** [March 23, 2011, 9:24pm UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/17 "2011-03-23T21:24:22Z")

</div>

Of course when does it work better for you guys?

On Mar 23, 9:37 am, Alois Cochard [alois.coch...@gmail.com](mailto:alois.coch...@gmail.com) wrote:

> Just wanna add that we can perhaps schedule a chat session one of  
> these days ?
> 
> Or at least a new thread about collaboration on OSEM, let me know what  
> you think fellow hackers 😉
> 
> Cheers,
> 
> On Mar 23, 2:35 pm, Alois Cochard [alois.coch...@gmail.com](mailto:alois.coch...@gmail.com) wrote:
> 
> > @David  
> > I've already created new annotation (compass like) to define analyser,  
> > etc ... would be nice if Shay take a look on it to validate them, you  
> > can find them here:[https://github.com/aloiscochard/elasticsearch/tree/master/modules/ela](https://github.com/aloiscochard/elasticsearch/tree/master/modules/ela)...
> 
> > I think you can integrate your code in the OSEM part of the code, or  
> > made a separate Hibernate module that use my annotations... don't know  
> > exactly but we must definitly work together I've already made all the  
> > mapping part !!!
> 
> > I mean I have coded the system to generate the mapping from annotation  
> > (just added support for custom analyzer yesterday, but not yet pushed  
> > to my repository).
> 
> > Take a look at this integration test to understand what's actually  
> > possible with OSEM:[https://github.com/aloiscochard/elasticsearch/blob/master/modules/ela](https://github.com/aloiscochard/elasticsearch/blob/master/modules/ela)...
> 
> > @Felipe  
> > I'm sure we can extract JPA integration from the play module to put it  
> > in elastic-search and link it with the code I already created for the  
> > OSEM module, and then limit the play module with only code for Play  
> > integration and nothing related to JPA.
> 
> > @All
> 
> > We must definitly work together, I was pretty busy last days but I  
> > hope to work on ES this week-end, I can try to integrate yours code to  
> > my ES fork (which aim is to add OSEM -Compass like- feature).
> 
> > Let me know if you have time to work on this, and what you think of my  
> > code. I'm sure there is lot of room for improvment... but that's a  
> > good start and I'll used in production soon for indexing relatively  
> > big and complex model.
> 
> > I've just added support for interface and polymorphism... must push it  
> > this evening, or at least before end of week !
> 
> > Cheers,
> 
> > Alois Cochardhttp://aloiscochard.blogspot.comhttp://twitter.com/aloiscochard
> 
> > On Mar 23, 11:01 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > > Hi,
> 
> > > Yea, it would be great to get both Object-\>Elasticsearch mapping support, and JPA integration, similar to what we did in Compass.
> 
> > > On Wednesday, March 23, 2011 at 9:40 AM, felipera wrote:
> > > 
> > > > Hi Alois,
> 
> > > > Let me take a look at it, lets def try to help each other out.
> 
> > > > Thank you,  
> > > > Felipe
> 
> > > > On Mar 22, 4:44 am, Alois Cochard [alois.coch...@gmail.com](mailto:alois.coch...@gmail.com) wrote:
> > > > 
> > > > > Hey,
> 
> > > > > I'm sure there is some redundant work between this play module and the  
> > > > > OSEM one I'm actually working on:[https://github.com/aloiscochard/elasticsearch](https://github.com/aloiscochard/elasticsearch)
> 
> > > > > More explanation about it here:[http://groups.google.com/a/elasticsearch.com/group/users/browse\_threa](http://groups.google.com/a/elasticsearch.com/group/users/browse_threa)...
> 
> > > > > BTW still waiting for feedback from Shay
> 
> > > > > But I'v some experience with Play! I did some small project with Siena/  
> > > > > Scala module so perhaps I can help.
> 
> > > > > I let you take a look at my code, and tell if you think we can  
> > > > > collaborate ?
> 
> > > > > Thanks,
> 
> > > > > Alois Cochardhttp://aloiscochard.blogspot.comhttp://twitter.com/aloiscochard
> 
> > > > > On Mar 21, 11:05 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > > > > > Heya,
> 
> > > > > > Great work!. Never used play framework myself, but heard good things about it from several people.
> 
> > > > > > -shay.banon
> 
> > > > > > On Monday, March 21, 2011 at 4:33 AM, felipera wrote:
> > > > > > 
> > > > > > > By the way I just released a new version to the module adding support  
> > > > > > > to external instances of Elastic Search.
> 
> > > > > > > For more information please visit:  
> > > > > > > [http://geeks.aretotally.in/play-framework-module-elastic-search-distr](http://geeks.aretotally.in/play-framework-module-elastic-search-distr)....
> 
> > > > > > > On Mar 20, 5:04 pm, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:
> > > > > > > 
> > > > > > > > There are optimizations to be made, currently it sends one message at  
> > > > > > > > the time. Basically the module I wrote listens for JPA events then  
> > > > > > > > uses an Elastic Search Adapter to send IndexRequests and  
> > > > > > > > DeleteRequests to Elastic Search.
> 
> > > > > > > > Next step is to either do BulkRequests and/or use AMQP in combination  
> > > > > > > > with ES's river.
> 
> > > > > > > > To me it would be a honor to contribute to ES core, Shay do you have  
> > > > > > > > any input here?
> 
> > > > > > > > Thank you,  
> > > > > > > > Felipe
> 
> > > > > > > > On Mar 20, 6:28 am, "K.B." [korbinian.ba...@googlemail.com](mailto:korbinian.ba...@googlemail.com) wrote:
> 
> > > > > > > > > Heya,
> 
> > > > > > > > > I just read your blog-post and even I'm not using play (wicket  
> > > > > > > > > instead) I finally were astonished about that you integrated it with  
> > > > > > > > > JPA, meaning you bring it close the the things Compass did.
> 
> > > > > > > > > AFAIK this is also something Shay wanted to bring to ES one day - can  
> > > > > > > > > this be brought to the ES core??? (didn't look at the implementation  
> > > > > > > > > so far);  
> > > > > > > > > That would be a way for the old compass users to finally go to ES  
> > > > > > > > > IMHO;
> 
> > > > > > > > > Thumbs up & Regards
> 
> > > > > > > > > On 20 Mrz., 04:10, felipera [felip...@gmail.com](mailto:felip...@gmail.com) wrote:
> 
> > > > > > > > > > Guys,
> 
> > > > > > > > > > I just released a new Elastic Search module for Java and Play!  
> > > > > > > > > > Framework.
> 
> > > > > > > > > > [http://geeks.aretotally.in/play-framework-module-elastic-search-distr](http://geeks.aretotally.in/play-framework-module-elastic-search-distr)...
> 
> > > > > > > > > > Just the first version but new features will keep coming.
> 
> > > > > > > > > > Thank you,  
> > > > > > > > > > Felipe

---

<div class="post-metadata">

**Author:** ![felipera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felipera/32/3038_2.png) [@felipera](https://discuss.elastic.co/u/felipera)\
**Post date:** [March 23, 2011, 9:26pm UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/18 "2011-03-23T21:26:15Z")

</div>

I am confortable with Hibernate, this is how we can do it:  
[http://docs.jboss.org/hibernate/core/3.3/reference/en/html/events.html](http://docs.jboss.org/hibernate/core/3.3/reference/en/html/events.html)

Basically just like Hibernate Search does it.

On Mar 23, 10:54 am, Alois Cochard [alois.coch...@gmail.com](mailto:alois.coch...@gmail.com) wrote:

> Hello David,
> 
> I've forked ES to create the OSEM component after a long chat with  
> Shay about how to do it.
> 
> I was thinking doing it as an external module, but Shay explained me  
> that he want the OSEM feature directly in ES and it's far easier to  
> integrate it at a low level (I mean to be used directly by ES Java  
> API). I think it will be the same for JPA... but I agree with you...  
> not for Hibernate.
> 
> I'll try to find some time to have a chat directly with Shay ASAP,  
> because it's far easier than sending 20 emails, but he could surely  
> affirm/infirm my points rapidly.
> 
> So I see it as an Hibernate plugin, but dependent on the OSEM part of  
> ES, since the OSEM code isn't integrated in ES yet, would be good if  
> the Hibernate module use my fork.
> 
> I'll take a look at you code this week-end but I must admit that I'm  
> far from an Hibernate expert (more used to JPA/JDO), as far as I  
> understand your actual code ([https://github.com/dadoonet/es-hibernate-](https://github.com/dadoonet/es-hibernate-)  
> connector/) is already a Hibernate plugin, so we can work together  
> using this codebase (I think it's good if you are project leader on  
> the plugin, since you have better Hibernate knowledge and... you use  
> it ! you are the first able to fix it), and if we need to add some  
> feature that aren't Hibernate specific we do it in my fork, and we  
> must try to re-use OSEM code as much as possible.
> 
> Will be a pleasure to collaborate but i must take a deeper look at  
> your plugin before know how to move forward,
> 
> BTW, I speak french but I'm swiss 😉 - french part- so yeah not a  
> problem if you prefer to communicate in french.
> 
> I recontact you by e-mail in french when I'm more comfortable with  
> your code.
> 
> Thanks for you help, looking forward to collaborate !
> 
> Cheers,
> 
> On Mar 23, 3:29 pm, David Pilato
> 
> [david.pil...@douane.finances.gouv.fr](mailto:david.pil...@douane.finances.gouv.fr) wrote:
> 
> > Alois,
> 
> > I will be very pleased to work with you on that project as you are really  
> > far ahead on this.  
> > I was wondering at first if I must reuse the Hibernate Search annotations  
> > instead of redefining what already exists.
> 
> > So I have the same question about your annotations, even if I know that  
> > HBSearch annotations are really closed to Lucene way of thinking...
> 
> > I mean : is the project an Elastic Search plugin (so package name is  
> > org.elasticsearch.osem) or is the project an Hibernate Plugin (and ES  
> > client) (so package name should be like org.hibernate.plugin.es) ?
> 
> > Whatever. I would be happy to contribute.
> 
> > What about starting a new clean Git Repo without forking ES as I don't think  
> > that we contribute directly to ES but only as ES client ?
> 
> > I think that you're French don't you ? So if nobody else want to work on it,  
> > I suggest that we have a private discuss or chat session in French (easier  
> > for me !) and try to find the best way of working together on it and about  
> > some technical stuff.
> 
> > Take care,  
> > David.
> 
> > -----Message d'origine-----  
> > De : Alois Cochard [[mailto:alois.coch...@gmail.com](mailto:alois.coch...@gmail.com)]  
> > Envoyé : mercredi 23 mars 2011 14:35  
> > À : users  
> > Objet : Re: Elastic Search Module for Play! Framework and Java
> 
> > @David  
> > I've already created new annotation (compass like) to define analyser, etc  
> > ... would be nice if Shay take a look on it to validate them, you can find  
> > them here:[https://github.com/aloiscochard/elasticsearch/tree/master/modules/ela](https://github.com/aloiscochard/elasticsearch/tree/master/modules/ela)...  
> > rch/src/main/java/org/elasticsearch/osem/annotations
> 
> > I think you can integrate your code in the OSEM part of the code, or made a  
> > separate Hibernate module that use my annotations... don't know exactly but  
> > we must definitly work together I've already made all the mapping part !!!
> 
> > I mean I have coded the system to generate the mapping from annotation (just  
> > added support for custom analyzer yesterday, but not yet pushed to my  
> > repository).
> 
> > Take a look at this integration test to understand what's actually possible  
> > with OSEM:[https://github.com/aloiscochard/elasticsearch/blob/master/modules/ela](https://github.com/aloiscochard/elasticsearch/blob/master/modules/ela)...  
> > rch/src/test/java/org/elasticsearch/osem/integration/ObjectContextIntegrati o  
> > nTest.java
> 
> > @Felipe  
> > I'm sure we can extract JPA integration from the play module to put it in  
> > elastic-search and link it with the code I already created for the OSEM  
> > module, and then limit the play module with only code for Play integration  
> > and nothing related to JPA.
> 
> > @All
> 
> > We must definitly work together, I was pretty busy last days but I hope to  
> > work on ES this week-end, I can try to integrate yours code to my ES fork  
> > (which aim is to add OSEM -Compass like- feature).
> 
> > Let me know if you have time to work on this, and what you think of my code.  
> > I'm sure there is lot of room for improvment... but that's a good start and  
> > I'll used in production soon for indexing relatively big and complex model.
> 
> > I've just added support for interface and polymorphism... must push it this  
> > evening, or at least before end of week !
> 
> > Cheers,
> 
> > Alois Cochardhttp://aloiscochard.blogspot.comhttp://twitter.com/aloiscochard

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 23, 2011, 9:37pm UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/19 "2011-03-23T21:37:10Z")

</div>

And you know how Hibernate Search came to be :). I have done that in Compass, and sadly, I found that I needed to hack into each and every different JPA implementation in order to provide proper support for this.  
On Wednesday, March 23, 2011 at 11:26 PM, felipera wrote:

> I am confortable with Hibernate, this is how we can do it:  
> [Chapter&nbsp;12.&nbsp;Interceptors and events](http://docs.jboss.org/hibernate/core/3.3/reference/en/html/events.html)
> 
> Basically just like Hibernate Search does it.
> 
> On Mar 23, 10:54 am, Alois Cochard [alois.coch...@gmail.com](mailto:alois.coch...@gmail.com) wrote:
> 
> > Hello David,
> > 
> > I've forked ES to create the OSEM component after a long chat with  
> > Shay about how to do it.
> > 
> > I was thinking doing it as an external module, but Shay explained me  
> > that he want the OSEM feature directly in ES and it's far easier to  
> > integrate it at a low level (I mean to be used directly by ES Java  
> > API). I think it will be the same for JPA... but I agree with you...  
> > not for Hibernate.
> > 
> > I'll try to find some time to have a chat directly with Shay ASAP,  
> > because it's far easier than sending 20 emails, but he could surely  
> > affirm/infirm my points rapidly.
> > 
> > So I see it as an Hibernate plugin, but dependent on the OSEM part of  
> > ES, since the OSEM code isn't integrated in ES yet, would be good if  
> > the Hibernate module use my fork.
> > 
> > I'll take a look at you code this week-end but I must admit that I'm  
> > far from an Hibernate expert (more used to JPA/JDO), as far as I  
> > understand your actual code ([https://github.com/dadoonet/es-hibernate-](https://github.com/dadoonet/es-hibernate-)  
> > connector/) is already a Hibernate plugin, so we can work together  
> > using this codebase (I think it's good if you are project leader on  
> > the plugin, since you have better Hibernate knowledge and... you use  
> > it ! you are the first able to fix it), and if we need to add some  
> > feature that aren't Hibernate specific we do it in my fork, and we  
> > must try to re-use OSEM code as much as possible.
> > 
> > Will be a pleasure to collaborate but i must take a deeper look at  
> > your plugin before know how to move forward,
> > 
> > BTW, I speak french but I'm swiss 😉 - french part- so yeah not a  
> > problem if you prefer to communicate in french.
> > 
> > I recontact you by e-mail in french when I'm more comfortable with  
> > your code.
> > 
> > Thanks for you help, looking forward to collaborate !
> > 
> > Cheers,
> > 
> > On Mar 23, 3:29 pm, David Pilato
> > 
> > [david.pil...@douane.finances.gouv.fr](mailto:david.pil...@douane.finances.gouv.fr) wrote:
> > 
> > > Alois,
> > 
> > > I will be very pleased to work with you on that project as you are really  
> > > far ahead on this.  
> > > I was wondering at first if I must reuse the Hibernate Search annotations  
> > > instead of redefining what already exists.
> > 
> > > So I have the same question about your annotations, even if I know that  
> > > HBSearch annotations are really closed to Lucene way of thinking...
> > 
> > > I mean : is the project an Elastic Search plugin (so package name is  
> > > org.elasticsearch.osem) or is the project an Hibernate Plugin (and ES  
> > > client) (so package name should be like org.hibernate.plugin.es) ?
> > 
> > > Whatever. I would be happy to contribute.
> > 
> > > What about starting a new clean Git Repo without forking ES as I don't think  
> > > that we contribute directly to ES but only as ES client ?
> > 
> > > I think that you're French don't you ? So if nobody else want to work on it,  
> > > I suggest that we have a private discuss or chat session in French (easier  
> > > for me !) and try to find the best way of working together on it and about  
> > > some technical stuff.
> > 
> > > Take care,  
> > > David.
> > 
> > > -----Message d'origine-----  
> > > De : Alois Cochard [[mailto:alois.coch...@gmail.com](mailto:alois.coch...@gmail.com)]  
> > > EnvoyÃ© : mercredi 23 mars 2011 14:35  
> > > Ã : users  
> > > Objet : Re: Elastic Search Module for Play! Framework and Java
> > 
> > > @David  
> > > I've already created new annotation (compass like) to define analyser, etc  
> > > ... would be nice if Shay take a look on it to validate them, you can find  
> > > them here:[https://github.com/aloiscochard/elasticsearch/tree/master/modules/ela](https://github.com/aloiscochard/elasticsearch/tree/master/modules/ela)...  
> > > rch/src/main/java/org/elasticsearch/osem/annotations
> > 
> > > I think you can integrate your code in the OSEM part of the code, or made a  
> > > separate Hibernate module that use my annotations... don't know exactly but  
> > > we must definitly work together I've already made all the mapping part !!!
> > 
> > > I mean I have coded the system to generate the mapping from annotation (just  
> > > added support for custom analyzer yesterday, but not yet pushed to my  
> > > repository).
> > 
> > > Take a look at this integration test to understand what's actually possible  
> > > with OSEM:[https://github.com/aloiscochard/elasticsearch/blob/master/modules/ela](https://github.com/aloiscochard/elasticsearch/blob/master/modules/ela)...  
> > > rch/src/test/java/org/elasticsearch/osem/integration/ObjectContextIntegrati o  
> > > nTest.java
> > 
> > > @Felipe  
> > > I'm sure we can extract JPA integration from the play module to put it in  
> > > elastic-search and link it with the code I already created for the OSEM  
> > > module, and then limit the play module with only code for Play integration  
> > > and nothing related to JPA.
> > 
> > > @All
> > 
> > > We must definitly work together, I was pretty busy last days but I hope to  
> > > work on ES this week-end, I can try to integrate yours code to my ES fork  
> > > (which aim is to add OSEM -Compass like- feature).
> > 
> > > Let me know if you have time to work on this, and what you think of my code.  
> > > I'm sure there is lot of room for improvment... but that's a good start and  
> > > I'll used in production soon for indexing relatively big and complex model.
> > 
> > > I've just added support for interface and polymorphism... must push it this  
> > > evening, or at least before end of week !
> > 
> > > Cheers,
> > 
> > > Alois Cochardhttp://aloiscochard.blogspot.comhttp://twitter.com/aloiscochard

---

<div class="post-metadata">

**Author:** ![Alois\_Cochard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alois_cochard/32/3176_2.png) [@Alois\_Cochard](https://discuss.elastic.co/u/Alois_Cochard)\
**Post date:** [March 25, 2011, 3:28pm UTC](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131/20 "2011-03-25T15:28:31Z")

</div>

@David  
I'll setup a maven repo with snapshot of my fork ASAP to let you  
depend on it until everything is packed in ES.

@Felipe  
Good to know 🙂

@Shay  
I now understand better why some of my co-worker keep telling me  
Hibernate is a piece of sh\*\* 😉  
I'll look at Compass code (as I did before) to see how you hacked all  
that different implementations.

@All  
I'll be on ES chatroom this sunday afternoon (I'm in Paris timezone)  
in case you want to speak about that.  
Otherwise you can add me on skype if you prefer:  
[alois.cochard@gmail.com](mailto:alois.cochard@gmail.com)

Have a nice week-end !

Cheers,

On Mar 23, 10:37 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> And you know how Hibernate Search came to be :). I have done that in Compass, and sadly, I found that I needed to hack into each and every different JPA implementation in order to provide proper support for this.
> 
> On Wednesday, March 23, 2011 at 11:26 PM, felipera wrote:
> 
> > I am confortable with Hibernate, this is how we can do it:  
> > [Chapter&nbsp;12.&nbsp;Interceptors and events](http://docs.jboss.org/hibernate/core/3.3/reference/en/html/events.html)
> 
> > Basically just like Hibernate Search does it.
> 
> > On Mar 23, 10:54 am, Alois Cochard [alois.coch...@gmail.com](mailto:alois.coch...@gmail.com) wrote:
> > 
> > > Hello David,
> 
> > > I've forked ES to create the OSEM component after a long chat with  
> > > Shay about how to do it.
> 
> > > I was thinking doing it as an external module, but Shay explained me  
> > > that he want the OSEM feature directly in ES and it's far easier to  
> > > integrate it at a low level (I mean to be used directly by ES Java  
> > > API). I think it will be the same for JPA... but I agree with you...  
> > > not for Hibernate.
> 
> > > I'll try to find some time to have a chat directly with Shay ASAP,  
> > > because it's far easier than sending 20 emails, but he could surely  
> > > affirm/infirm my points rapidly.
> 
> > > So I see it as an Hibernate plugin, but dependent on the OSEM part of  
> > > ES, since the OSEM code isn't integrated in ES yet, would be good if  
> > > the Hibernate module use my fork.
> 
> > > I'll take a look at you code this week-end but I must admit that I'm  
> > > far from an Hibernate expert (more used to JPA/JDO), as far as I  
> > > understand your actual code ([https://github.com/dadoonet/es-hibernate-](https://github.com/dadoonet/es-hibernate-)  
> > > connector/) is already a Hibernate plugin, so we can work together  
> > > using this codebase (I think it's good if you are project leader on  
> > > the plugin, since you have better Hibernate knowledge and... you use  
> > > it ! you are the first able to fix it), and if we need to add some  
> > > feature that aren't Hibernate specific we do it in my fork, and we  
> > > must try to re-use OSEM code as much as possible.
> 
> > > Will be a pleasure to collaborate but i must take a deeper look at  
> > > your plugin before know how to move forward,
> 
> > > BTW, I speak french but I'm swiss 😉 - french part- so yeah not a  
> > > problem if you prefer to communicate in french.
> 
> > > I recontact you by e-mail in french when I'm more comfortable with  
> > > your code.
> 
> > > Thanks for you help, looking forward to collaborate !
> 
> > > Cheers,
> 
> > > On Mar 23, 3:29 pm, David Pilato
> 
> > > [david.pil...@douane.finances.gouv.fr](mailto:david.pil...@douane.finances.gouv.fr) wrote:
> > > 
> > > > Alois,
> 
> > > > I will be very pleased to work with you on that project as you are really  
> > > > far ahead on this.  
> > > > I was wondering at first if I must reuse the Hibernate Search annotations  
> > > > instead of redefining what already exists.
> 
> > > > So I have the same question about your annotations, even if I know that  
> > > > HBSearch annotations are really closed to Lucene way of thinking...
> 
> > > > I mean : is the project an Elastic Search plugin (so package name is  
> > > > org.elasticsearch.osem) or is the project an Hibernate Plugin (and ES  
> > > > client) (so package name should be like org.hibernate.plugin.es) ?
> 
> > > > Whatever. I would be happy to contribute.
> 
> > > > What about starting a new clean Git Repo without forking ES as I don't think  
> > > > that we contribute directly to ES but only as ES client ?
> 
> > > > I think that you're French don't you ? So if nobody else want to work on it,  
> > > > I suggest that we have a private discuss or chat session in French (easier  
> > > > for me !) and try to find the best way of working together on it and about  
> > > > some technical stuff.
> 
> > > > Take care,  
> > > > David.
> 
> > > > -----Message d'origine-----  
> > > > De : Alois Cochard [[mailto:alois.coch...@gmail.com](mailto:alois.coch...@gmail.com)]  
> > > > Envoyé : mercredi 23 mars 2011 14:35  
> > > > À : users  
> > > > Objet : Re: Elastic Search Module for Play! Framework and Java
> 
> > > > @David  
> > > > I've already created new annotation (compass like) to define analyser, etc  
> > > > ... would be nice if Shay take a look on it to validate them, you can find  
> > > > them here:[https://github.com/aloiscochard/elasticsearch/tree/master/modules/ela](https://github.com/aloiscochard/elasticsearch/tree/master/modules/ela)...  
> > > > rch/src/main/java/org/elasticsearch/osem/annotations
> 
> > > > I think you can integrate your code in the OSEM part of the code, or made a  
> > > > separate Hibernate module that use my annotations... don't know exactly but  
> > > > we must definitly work together I've already made all the mapping part !!!
> 
> > > > I mean I have coded the system to generate the mapping from annotation (just  
> > > > added support for custom analyzer yesterday, but not yet pushed to my  
> > > > repository).
> 
> > > > Take a look at this integration test to understand what's actually possible  
> > > > with OSEM:[https://github.com/aloiscochard/elasticsearch/blob/master/modules/ela](https://github.com/aloiscochard/elasticsearch/blob/master/modules/ela)...  
> > > > rch/src/test/java/org/elasticsearch/osem/integration/ObjectContextIntegrati o  
> > > > nTest.java
> 
> > > > @Felipe  
> > > > I'm sure we can extract JPA integration from the play module to put it in  
> > > > elastic-search and link it with the code I already created for the OSEM  
> > > > module, and then limit the play module with only code for Play integration  
> > > > and nothing related to JPA.
> 
> > > > @All
> 
> > > > We must definitly work together, I was pretty busy last days but I hope to  
> > > > work on ES this week-end, I can try to integrate yours code to my ES fork  
> > > > (which aim is to add OSEM -Compass like- feature).
> 
> > > > Let me know if you have time to work on this, and what you think of my code.  
> > > > I'm sure there is lot of room for improvment... but that's a good start and  
> > > > I'll used in production soon for indexing relatively big and complex model.
> 
> > > > I've just added support for interface and polymorphism... must push it this  
> > > > evening, or at least before end of week !
> 
> > > > Cheers,
> 
> > > > Alois Cochardhttp://aloiscochard.blogspot.comhttp://twitter.com/aloiscochard

[Next page](https://discuss.elastic.co/t/elastic-search-module-for-play-framework-and-java/4131.md?page=2)
