Skip to content

Exception on get mapping for type #832

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
raidersv opened this issue Jul 28, 2014 · 1 comment
Closed

Exception on get mapping for type #832

raidersv opened this issue Jul 28, 2014 · 1 comment

Comments

@raidersv
Copy link

Exception message "Could not create an instance of type Nest.ISourceFieldMapping. Type is an interface or abstract class and cannot be instantiated." during a call "ElasticClient.GetMapping" function.

Some properties in class "public class RootObjectMapping : ObjectMapping" have interface type and can't be instantiated, example:
[JsonProperty("_source")]
public ISourceFieldMapping SourceFieldMappingDescriptor { get; set; }

@gmarz
Copy link
Contributor

gmarz commented Jul 28, 2014

@raidersv this is actually a known bug and has been fixed by @johndaniels in #829. We plan on releasing 1.0.1 soon. Thanks for reporting.

@gmarz gmarz closed this as completed Jul 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants