mstein / elasticsearch-grails-plugin

ElasticSearch grails plugin
Based on Graeme Rocher initial stub. Note that it is still in early stage.
Other
62 stars 164 forks source link

The plugin is mapping primitive type as object in ES #61

Open mstein opened 11 years ago

mstein commented 11 years ago

for example, int myProperty will be mapped in ES as {"type":"object"}. But when the plugin send the serialized domain to ES, ES fails to interpret properly the field as an integer. Typing the property as Integer fix the issue. The plugin should convert the primitive type to their Object wrapper equivalent for the mapping phase.