{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1818","repository_url":"https://api.github.com/repos/elastic/elasticsearch-net","labels_url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1818/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1818/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1818/events","html_url":"https://github.com/elastic/elasticsearch-net/issues/1818","id":132635919,"number":1818,"title":"2.1 CreateIndex mapping problem","user":{"login":"CocaColaBear","id":5566197,"avatar_url":"https://avatars.githubusercontent.com/u/5566197?v=3","gravatar_id":"","url":"https://api.github.com/users/CocaColaBear","html_url":"https://github.com/CocaColaBear","followers_url":"https://api.github.com/users/CocaColaBear/followers","following_url":"https://api.github.com/users/CocaColaBear/following{/other_user}","gists_url":"https://api.github.com/users/CocaColaBear/gists{/gist_id}","starred_url":"https://api.github.com/users/CocaColaBear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CocaColaBear/subscriptions","organizations_url":"https://api.github.com/users/CocaColaBear/orgs","repos_url":"https://api.github.com/users/CocaColaBear/repos","events_url":"https://api.github.com/users/CocaColaBear/events{/privacy}","received_events_url":"https://api.github.com/users/CocaColaBear/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-10T08:37:04Z","updated_at":"2016-02-10T08:37:04Z","closed_at":null,"body":"Hello! In 1.x versions, create index looks like this:\r\n\r\n`client.CreateIndex(\"myindexname\", c => c\r\n    .NumberOfReplicas(0)\r\n    .NumberOfShards(1)\r\n    .Settings(s=>s\r\n        .Add(\"merge.policy.merge_factor\",\"10\")\r\n        .Add(\"search.slowlog.threshold.fetch.warn\", \"1s\")\r\n    )   \r\n    .AddMapping<ElasticSearchProject>(m => m.MapFromAttributes())\r\n    .AddMapping<Person>(m => m.MapFromAttributes())\r\n);`\r\n\r\nBut how implement this code to 2.x version? Or can you give me documentations of 2.x version?"}}