Annotations help


(Activity Bob) #1

Hi,

I want to map a java field to be saved as a particular type
(geo_point)

Is it possible to use an annotation to make the mapping do this or do
i have to ajust the mapping manually? (using the auto generated one at
the moment)

cheers,
Rob


(David Pilato) #2

I've seen Alois Work about OSEM annotations for ES :


And an interesting fork here : https://github.com/poblish/elasticsearch-osem

BTW, I started to write a maven plugin to generate JSON schema based on
Alois work but I'm stucked with classloader problems !
It's here : https://github.com/dadoonet/esmavenplugin
The README file described my problem...

Don't know if all or part of this answer to your needs.

David

-----Message d'origine-----
De : elasticsearch@googlegroups.com [mailto:elasticsearch@googlegroups.com]
De la part de Activity Bob
Envoyé : mardi 29 novembre 2011 19:45
À : elasticsearch
Objet : annotations help

Hi,

I want to map a java field to be saved as a particular type
(geo_point)

Is it possible to use an annotation to make the mapping do this or do
i have to ajust the mapping manually? (using the auto generated one at
the moment)

cheers,
Rob


(system) #3