{"action":"created","issue":{"url":"https://api.github.com/repos/toptal/chewy/issues/291","labels_url":"https://api.github.com/repos/toptal/chewy/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/toptal/chewy/issues/291/comments","events_url":"https://api.github.com/repos/toptal/chewy/issues/291/events","html_url":"https://github.com/toptal/chewy/issues/291","id":120755074,"number":291,"title":"Upgrade to ElasticSearch 2","user":{"login":"RoxasShadow","id":805144,"avatar_url":"https://avatars.githubusercontent.com/u/805144?v=3","gravatar_id":"","url":"https://api.github.com/users/RoxasShadow","html_url":"https://github.com/RoxasShadow","followers_url":"https://api.github.com/users/RoxasShadow/followers","following_url":"https://api.github.com/users/RoxasShadow/following{/other_user}","gists_url":"https://api.github.com/users/RoxasShadow/gists{/gist_id}","starred_url":"https://api.github.com/users/RoxasShadow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoxasShadow/subscriptions","organizations_url":"https://api.github.com/users/RoxasShadow/orgs","repos_url":"https://api.github.com/users/RoxasShadow/repos","events_url":"https://api.github.com/users/RoxasShadow/events{/privacy}","received_events_url":"https://api.github.com/users/RoxasShadow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-07T11:36:31Z","updated_at":"2015-12-17T07:24:44Z","closed_at":null,"body":"I upgraded ElasticSearch from 1.7 to 2.1, but now one of my indexes is broken when using `index_analyzer\r\n\r\n*index broken by ES v2*\r\n```ruby\r\nChewy.analyzer :autocomplete,\r\n  type: 'custom',\r\n  tokenizer: 'standard'\r\n\r\nChewy.filter :autocomplete_filter,\r\n  type: 'edge_ngram',\r\n  min_gram: 1,\r\n  max_gram: 20\r\n```\r\n\r\n*ES version*\r\n> $ elasticsearch -version\r\nVersion: 2.1.0, Build: 72cd1f1/2015-11-18T22:40:03Z, JVM: 1.8.0_66\r\n\r\n*Output*\r\n>     Elasticsearch::Transport::Transport::Errors::BadRequest:\r\n       [400] {\"error\":{\"root_cause\":[{\"type\":\"mapper_parsing_exception\",\"reason\":\"analyzer on field [name] must be set when search_analyzer is set\"}],\"type\":\"mapper_parsing_exception\",\"reason\":\"Failed to parse mapping [company]: analyzer on field [name] must be set when search_analyzer is set\",\"caused_by\":{\"type\":\"mapper_parsing_exception\",\"reason\":\"analyzer on field [name] must be set when search_analyzer is set\"}},\"status\":400}\r\n\r\n\r\nSince I noticed https://github.com/toptal/chewy/blob/master/.travis.yml#L42, I wonder if newer versions of ElasticSearch are actually supported by you. Thanks."},"comment":{"url":"https://api.github.com/repos/toptal/chewy/issues/comments/165367307","html_url":"https://github.com/toptal/chewy/issues/291#issuecomment-165367307","issue_url":"https://api.github.com/repos/toptal/chewy/issues/291","id":165367307,"user":{"login":"sergeygaychuk","id":557538,"avatar_url":"https://avatars.githubusercontent.com/u/557538?v=3","gravatar_id":"","url":"https://api.github.com/users/sergeygaychuk","html_url":"https://github.com/sergeygaychuk","followers_url":"https://api.github.com/users/sergeygaychuk/followers","following_url":"https://api.github.com/users/sergeygaychuk/following{/other_user}","gists_url":"https://api.github.com/users/sergeygaychuk/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeygaychuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeygaychuk/subscriptions","organizations_url":"https://api.github.com/users/sergeygaychuk/orgs","repos_url":"https://api.github.com/users/sergeygaychuk/repos","events_url":"https://api.github.com/users/sergeygaychuk/events{/privacy}","received_events_url":"https://api.github.com/users/sergeygaychuk/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T07:24:44Z","updated_at":"2015-12-17T07:24:44Z","body":"@RoxasShadow Can you check it with [that](https://github.com/toptal/chewy/pull/297) PR"}}