karmi / retire

A rich Ruby API and DSL for the Elasticsearch search engine
http://karmi.github.com/retire/
MIT License
1.86k stars 533 forks source link

Failure to index records #953

Closed fernando-eb closed 10 years ago

fernando-eb commented 10 years ago

We have found an issue trying to save an object(car) with another nested object (owner).

 def to_indexed_json
   self.to_json(include: { owner: { proprietary: :name }})
 end

This started to happen, when we added a new field (boolean) to the owner object. and now when we try to save a record it fails throwing this exception:

MapperParsingException[failed to parse [owner. permission]]; nested: JsonParseException[Current token (VALUE_FALSE) not numeric, can not use numeric value accessors

any ideas?

Regards,