Elastic Search Module for Play! Framework and Java


(felipera) #1

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

Just the first version but new features will keep coming.

Thank you,
Felipe


(K.B.) #2

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

Just the first version but new features will keep coming.

Thank you,
Felipe


(felipera) #3

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

Just the first version but new features will keep coming.

Thank you,
Felipe


(felipera) #4

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.

On Mar 20, 5:04 pm, felipera 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 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 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...

Just the first version but new features will keep coming.

Thank you,
Felipe


(Shay Banon) #5

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.

On Mar 20, 5:04 pm, felipera 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 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 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...

Just the first version but new features will keep coming.

Thank you,
Felipe


(Alois Cochard) #6

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

More explanation about it here:
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://twitter.com/aloiscochard

On Mar 21, 11:05 am, Shay Banon 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....

On Mar 20, 5:04 pm, felipera 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 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 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...

Just the first version but new features will keep coming.

Thank you,
Felipe


(Lukáš Vlček) #7

Hi,

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


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.comwrote:

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

More explanation about it here:

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://twitter.com/aloiscochard

On Mar 21, 11:05 am, Shay Banon 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..
..

On Mar 20, 5:04 pm, felipera 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 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 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...

Just the first version but new features will keep coming.

Thank you,
Felipe


(dpilato) #8
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.


(felipera) #9

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
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:
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...
Sent from the ElasticSearch Users mailing list archive at Nabble.com.


(felipera) #10

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 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

More explanation about it here: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 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....

On Mar 20, 5:04 pm, felipera 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 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 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...

Just the first version but new features will keep coming.

Thank you,
Felipe


(Shay Banon) #11

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 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

More explanation about it here: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 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....

On Mar 20, 5:04 pm, felipera 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 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 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...

Just the first version but new features will keep coming.

Thank you,
Felipe


(Alois Cochard) #12

@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

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

@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


http://twitter.com/aloiscochard

On Mar 23, 11:01 am, Shay Banon 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 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

More explanation about it here: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 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....

On Mar 20, 5:04 pm, felipera 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 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 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...

Just the first version but new features will keep coming.

Thank you,
Felipe


(Alois Cochard) #13

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 :wink:

Cheers,

On Mar 23, 2:35 pm, Alois Cochard 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...

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

@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 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 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

More explanation about it here: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 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....

On Mar 20, 5:04 pm, felipera 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 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 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...

Just the first version but new features will keep coming.

Thank you,
Felipe


(dpilato) #14

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


http://twitter.com/aloiscochard


(Alois Cochard) #15

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-
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 :wink: - 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 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]
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...
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...
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


(dpilato) #16

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 :wink:

Cheers

-----Message d'origine-----
De : Alois Cochard [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-
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 :wink: - 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,


(felipera) #17

Of course when does it work better for you guys?

On Mar 23, 9:37 am, Alois Cochard 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 :wink:

Cheers,

On Mar 23, 2:35 pm, Alois Cochard 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...

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

@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 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 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

More explanation about it here: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 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....

On Mar 20, 5:04 pm, felipera 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 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 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...

Just the first version but new features will keep coming.

Thank you,
Felipe


(felipera) #18

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

Basically just like Hibernate Search does it.

On Mar 23, 10:54 am, Alois Cochard 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-
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 :wink: - 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 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]
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...
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...
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


(Shay Banon) #19

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:
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 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-
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 :wink: - 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 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]
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...
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...
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


(Alois Cochard) #20

@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 :slight_smile:

@Shay
I now understand better why some of my co-worker keep telling me
Hibernate is a piece of sh** :wink:
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

Have a nice week-end !

Cheers,

On Mar 23, 10:37 pm, Shay Banon 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:
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 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-
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 :wink: - 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 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]
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...
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...
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