Object Search Engine Mapping

Hello all,

I finally got time to integrate a bit of OSEM in elastic-search:
https://github.com/aloiscochard/elasticsearch

All code & test are in package 'org.elasticsearch.osem', look first at
org.elasticsearch.osem.integration.ObjectContextIntegrationTest to
understand how it works and how to integrate it.

It's really alpha and I want to change some stuff, actually only
simple POJO are working and polymorphism isn't properly handled.

The serializer/deserialiser look more like hack than a nice design
(ObjectContext[Reader | Writer]Impl) ...

But I think it's better to share it now to know what kimchy think ?

I'll try to work on it this week-end to do stuff I have high-priority
on:

  • Adding the Id annotation + correct behavior
  • Better polymorphism/interface handling

Thanks to take a look at this code and tell me what you think,

Alois Cochard


http://www.twitter.com/aloiscochard

Oh yeah... and there is a ugly/evil dependency on spring core
(AnnotationUtils)...

For the moment I embedded (manually) the code under org.es.osem.common
until I have a replacement for this code...

On Mar 4, 6:07 pm, Alois Cochard alois.coch...@gmail.com wrote:

Hello all,

I finally got time to integrate a bit of OSEM in elastic-search:https://github.com/aloiscochard/elasticsearch

All code & test are in package 'org.elasticsearch.osem', look first at
org.elasticsearch.osem.integration.ObjectContextIntegrationTest to
understand how it works and how to integrate it.

It's really alpha and I want to change some stuff, actually only
simple POJO are working and polymorphism isn't properly handled.

The serializer/deserialiser look more like hack than a nice design
(ObjectContext[Reader | Writer]Impl) ...

But I think it's better to share it now to know what kimchy think ?

I'll try to work on it this week-end to do stuff I have high-priority
on:

  • Adding the Id annotation + correct behavior
  • Better polymorphism/interface handling

Thanks to take a look at this code and tell me what you think,

Alois Cochardhttp://aloiscochard.blogspot.comhttp://www.twitter.com/aloiscochard

Cool!. I haven't had a chance yet to have a look at the code, will have a look and post back comments :slight_smile:
On Friday, March 4, 2011 at 7:14 PM, Alois Cochard wrote:

Oh yeah... and there is a ugly/evil dependency on spring core
(AnnotationUtils)...

For the moment I embedded (manually) the code under org.es.osem.common
until I have a replacement for this code...

On Mar 4, 6:07 pm, Alois Cochard alois.coch...@gmail.com wrote:

Hello all,

I finally got time to integrate a bit of OSEM in elastic-search:https://github.com/aloiscochard/elasticsearch

All code & test are in package 'org.elasticsearch.osem', look first at
org.elasticsearch.osem.integration.ObjectContextIntegrationTest to
understand how it works and how to integrate it.

It's really alpha and I want to change some stuff, actually only
simple POJO are working and polymorphism isn't properly handled.

The serializer/deserialiser look more like hack than a nice design
(ObjectContext[Reader | Writer]Impl) ...

But I think it's better to share it now to know what kimchy think ?

I'll try to work on it this week-end to do stuff I have high-priority
on:

  • Adding the Id annotation + correct behavior
  • Better polymorphism/interface handling

Thanks to take a look at this code and tell me what you think,

Alois Cochardhttp://aloiscochard.blogspot.comhttp://www.twitter.com/aloiscochard