{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-rails/issues/384","labels_url":"https://api.github.com/repos/elastic/elasticsearch-rails/issues/384/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-rails/issues/384/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-rails/issues/384/events","html_url":"https://github.com/elastic/elasticsearch-rails/issues/384","id":72511860,"number":384,"title":"ActiveRecord::Enum causes Elasticsearch to throw an NumberFormatException exception.","user":{"login":"1nput0utput","id":823899,"avatar_url":"https://avatars.githubusercontent.com/u/823899?v=3","gravatar_id":"","url":"https://api.github.com/users/1nput0utput","html_url":"https://github.com/1nput0utput","followers_url":"https://api.github.com/users/1nput0utput/followers","following_url":"https://api.github.com/users/1nput0utput/following{/other_user}","gists_url":"https://api.github.com/users/1nput0utput/gists{/gist_id}","starred_url":"https://api.github.com/users/1nput0utput/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1nput0utput/subscriptions","organizations_url":"https://api.github.com/users/1nput0utput/orgs","repos_url":"https://api.github.com/users/1nput0utput/repos","events_url":"https://api.github.com/users/1nput0utput/events{/privacy}","received_events_url":"https://api.github.com/users/1nput0utput/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-01T20:13:26Z","updated_at":"2015-07-02T03:24:01Z","closed_at":null,"body":"I have a model with enum type 'state' and the  Elasticsearch::Model::Callbacks is included. Whenever I try to update the 'state' field, I get the following exception thrown at me: \r\n\r\nElasticsearch::Transport::Transport::Errors::BadRequest: [400] {\"error\":\"MapperParsingException[failed to parse [state]]; nested: NumberFormatException[For input string: \\\"submitted\\\"]; \",\"status\":400}\r\n\r\nNow, this seems obvious that the state should not be a string but an integer instead. I have no clue to how this possibly be converted to an integer in the elasticsearch's query."},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-rails/issues/comments/117890792","html_url":"https://github.com/elastic/elasticsearch-rails/issues/384#issuecomment-117890792","issue_url":"https://api.github.com/repos/elastic/elasticsearch-rails/issues/384","id":117890792,"user":{"login":"1nput0utput","id":823899,"avatar_url":"https://avatars.githubusercontent.com/u/823899?v=3","gravatar_id":"","url":"https://api.github.com/users/1nput0utput","html_url":"https://github.com/1nput0utput","followers_url":"https://api.github.com/users/1nput0utput/followers","following_url":"https://api.github.com/users/1nput0utput/following{/other_user}","gists_url":"https://api.github.com/users/1nput0utput/gists{/gist_id}","starred_url":"https://api.github.com/users/1nput0utput/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1nput0utput/subscriptions","organizations_url":"https://api.github.com/users/1nput0utput/orgs","repos_url":"https://api.github.com/users/1nput0utput/repos","events_url":"https://api.github.com/users/1nput0utput/events{/privacy}","received_events_url":"https://api.github.com/users/1nput0utput/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T03:24:01Z","updated_at":"2015-07-02T03:24:01Z","body":"I was able to resolve my issue by forcing reindex as suggested by @karmi, I used the import rake task with FORCE=y "}}