How to solve this error?
This is my model file (Ruby on Rails): https://github.com/JonasPreisler/tim4/blob/master/app/models/vehicle.rb
This is the error:
Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"No handler for type [string] declared on field [year]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [vehicles]: No handler for type [string] declared on field [year]","caused_by":{"type":"mapper_parsing_exception","reason":"No handler for type [string] declared on field [year]"}},"status":400}
Thank you
- Jonas