# Object Search Engine Mapping

**URL:** <https://discuss.elastic.co/t/object-search-engine-mapping/4032>\
**Category:** Elasticsearch\
**Created:** [March 4, 2011, 5:07pm UTC](https://discuss.elastic.co/t/object-search-engine-mapping/4032 "2011-03-04T17:07:18Z")\
**Posts on this page:** 4\
**Page:** 1

<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 4, 2011, 5:07pm UTC](https://discuss.elastic.co/t/object-search-engine-mapping/4032/1 "2011-03-04T17:07:18Z")

</div>

Hello all,

I finally got time to integrate a bit of OSEM in elastic-search:  
[https://github.com/aloiscochard/elasticsearch](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

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

  
[http://www.twitter.com/aloiscochard](http://www.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 4, 2011, 5:14pm UTC](https://discuss.elastic.co/t/object-search-engine-mapping/4032/2 "2011-03-04T17:14:06Z")

</div>

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](mailto: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](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

---

<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 6, 2011, 4:13am UTC](https://discuss.elastic.co/t/object-search-engine-mapping/4032/3 "2011-03-06T04:13:11Z")

</div>

Cool!. I haven't had a chance yet to have a look at the code, will have a look and post back comments 🙂  
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](mailto: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](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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:10am UTC](https://discuss.elastic.co/t/object-search-engine-mapping/4032/4 "2017-07-06T04:10:44Z")

</div>


