# Object Search Engine Mapper (Compass features in ES)

**URL:** <https://discuss.elastic.co/t/object-search-engine-mapper-compass-features-in-es/4423>\
**Category:** Elasticsearch\
**Created:** [May 17, 2011, 1:14pm UTC](https://discuss.elastic.co/t/object-search-engine-mapper-compass-features-in-es/4423 "2011-05-17T13:14:17Z")\
**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:** [May 17, 2011, 1:14pm UTC](https://discuss.elastic.co/t/object-search-engine-mapper-compass-features-in-es/4423/1 "2011-05-17T13:14:17Z")

</div>

Hello all,

Just to let you know that I've splitted the OSEM part from my fork  
until it get perhaps integreted in ES.

Since I didn't changed anything in ES to implement OSEM, you can use  
it as in independent module (and anyone who want to reuse annotations  
can do so).

More informations here (only snapshots release for the moment):

> **[aloiscochard/elasticsearch-osem](https://github.com/aloiscochard/elasticsearch-osem)**
>
> elasticsearch-osem - ElasticSearch OSEM

Would be happy to get some feedback if anyone try it.

Cheers,

PS: will blog about it in few days, with a full usage sample

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:** ![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:** [May 17, 2011, 4:54pm UTC](https://discuss.elastic.co/t/object-search-engine-mapper-compass-features-in-es/4423/2 "2011-05-17T16:54:36Z")

</div>

Great effort, thanks!  
On Tuesday, May 17, 2011 at 4:14 PM, Alois Cochard wrote:

> Hello all,
> 
> Just to let you know that I've splitted the OSEM part from my fork  
> until it get perhaps integreted in ES.
> 
> Since I didn't changed anything in ES to implement OSEM, you can use  
> it as in independent module (and anyone who want to reuse annotations  
> can do so).
> 
> More informations here (only snapshots release for the moment):  
> [GitHub - aloiscochard/elasticsearch-osem: ElasticSearch OSEM](https://github.com/aloiscochard/elasticsearch-osem)
> 
> Would be happy to get some feedback if anyone try it.
> 
> Cheers,
> 
> PS: will blog about it in few days, with a full usage sample
> 
> Alois Cochard  
> [http://aloiscochard.blogspot.com](http://aloiscochard.blogspot.com)  
> [http://www.twitter.com/aloiscochard](http://www.twitter.com/aloiscochard)

---

<div class="post-metadata">

**Author:** ![Mauricio\_Alarcon](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@Mauricio\_Alarcon](https://discuss.elastic.co/u/Mauricio_Alarcon)\
**Post date:** [May 24, 2011, 9:28pm UTC](https://discuss.elastic.co/t/object-search-engine-mapper-compass-features-in-es/4423/3 "2011-05-24T21:28:35Z")

</div>

Alois,

I've been giving it a spin during the past couple days and so far  
it's been running smooth, I'm using the binaries from your maven repo.  
This is a great advance on this direction. (I haven't been able to  
compile via maven for some odd reason, I think it's related to the  
testng.. I'll check on that later and give you feedback)

Here are my two cents, some of them might be out of the scope now, but  
I'll mention them just for the record.

1. I think, it'll be nice to have a way to scan entities for  
"@Searchable" ala old Compass way :), although this was part of  
CompassGPS (I think...)
2. re:"@Indexable": Compass used to have 3 different ones (correct me  
if I'm wrong):

- @SearchableProperty
- @SearchableMetadata
- @SearchableId  
Just for the sake of compatibility and easiness to migrate from  
Compass, it would be nice to have them here as well

I've got a question about \_id and its relation with entities:

- Being that my entity has an "id" I'd really like to use that in ES w/  
out giving it explicitly, isn't that a desirable behavior while  
dealing with entities?

I tried the following, but run into an exception. I assigned  
"@Indexable(indexName="\_id")" to the setter of my entity id then, I  
tried to index it with a simple "client.prepareIndex(INDEX, DOC\_TYPE)"  
and ES barked at me with  
"Caused by: org.elasticsearch.index.mapper.MapperParsingException:  
Failed to parse [\_id]"

am I having some wrong understanding here?

Thanks

Mauricio

On May 17, 9:14 am, Alois Cochard [alois.coch...@gmail.com](mailto:alois.coch...@gmail.com) wrote:

> Hello all,
> 
> Just to let you know that I've splitted the OSEM part from my fork  
> until it get perhaps integreted in ES.
> 
> Since I didn't changed anything in ES to implement OSEM, you can use  
> it as in independent module (and anyone who want to reuse annotations  
> can do so).
> 
> More informations here (only snapshots release for the moment):[GitHub - aloiscochard/elasticsearch-osem: ElasticSearch OSEM](https://github.com/aloiscochard/elasticsearch-osem)
> 
> Would be happy to get some feedback if anyone try it.
> 
> Cheers,
> 
> PS: will blog about it in few days, with a full usage sample
> 
> 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:05am UTC](https://discuss.elastic.co/t/object-search-engine-mapper-compass-features-in-es/4423/4 "2017-07-06T04:05:24Z")

</div>


