Skip to content

Exception on get mapping for type #832

Closed
@raidersv

Description

@raidersv

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; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions