{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/3459","repository_url":"https://api.github.com/repos/elastic/elasticsearch-net","labels_url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/3459/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/3459/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/3459/events","html_url":"https://github.com/elastic/elasticsearch-net/issues/3459","id":373309328,"node_id":"MDU6SXNzdWUzNzMzMDkzMjg=","number":3459,"title":"ElasticClient.SearchAsync doesn't work with Generic type anymore (upgrading from <v6.0 to v6.4)","user":{"login":"kanup","id":10190605,"node_id":"MDQ6VXNlcjEwMTkwNjA1","avatar_url":"https://avatars0.githubusercontent.com/u/10190605?v=4","gravatar_id":"","url":"https://api.github.com/users/kanup","html_url":"https://github.com/kanup","followers_url":"https://api.github.com/users/kanup/followers","following_url":"https://api.github.com/users/kanup/following{/other_user}","gists_url":"https://api.github.com/users/kanup/gists{/gist_id}","starred_url":"https://api.github.com/users/kanup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanup/subscriptions","organizations_url":"https://api.github.com/users/kanup/orgs","repos_url":"https://api.github.com/users/kanup/repos","events_url":"https://api.github.com/users/kanup/events{/privacy}","received_events_url":"https://api.github.com/users/kanup/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-24T05:21:09Z","updated_at":"2018-10-26T06:44:40Z","closed_at":"2018-10-26T06:44:40Z","author_association":"NONE","body":"How to search across multiple indexes (generic type) and get results in their specific/concrete types in current version (6.4.0)? The old method doesn't work.\r\n\r\n<!--\r\nGitHub is reserved for bug reports and feature requests. The best place\r\nto ask a general question is at the Elastic Discourse forums at\r\nhttps://discuss.elastic.co. If you are in fact posting a bug report or\r\na feature request, please include one and only one of the below blocks\r\nin your new issue.\r\n-->\r\n\r\n<!--\r\nIf you are filing a bug report, please remove the below feature\r\nrequest block and provide responses for all of the below items.\r\n-->\r\n\r\n**NEST 6.4.0 / Elasticsearch.Net 6.4.0**:\r\n\r\n\r\n**Elasticsearch 6.4.0**:\r\n\r\nIn 6.4.0, the definition of mapping for any type has changed from, for example:\r\n```ConnectionSettings.MapDefaultTypeIndices(x => x.Add(typeof(News), \"news\")```\r\nto:\r\n```ConnectionSettings.DefaultMappingFor<News>(x => x.IndexName(\"News\"))```\r\n\r\nThis new syntax might be missing some configuration steps inside the library because my generic search doesn't work as before.\r\n\r\nConsider the following search command:\r\n```Nest.ElasticClient.SearchAsync<Content>(ISearchRequest)```\r\n\r\nInstead of returning documents of mixed derived types such as News, Stories, etc. in the result, it is returning documents of same plain generic type \"Content\" for everything.\r\n"}}
{"actor":{"display_login":"russcam"}}