damienbod / ElasticsearchCRUD

Elasticsearch .NET netstandard API
http://damienbod.com/2014/09/22/elasticsearch-crud-net-provider/
176 stars 49 forks source link

Issue with ElasticsearchContext.IndexCreate<T>() #166

Open jayslife opened 7 years ago

jayslife commented 7 years ago

First I want to say thank you for creating such an easy API to interact with Elasticsearch, you time on this project is very much appreciated.

I am having an Issue with ElasticsearchContext.IndexCreate(). I am working with a large model base and have choose not to create DTO's for them and am using them directly from Entity Framework. When the models were created the collections are all using IList for many to many mappings.

This produces an error "Cannot create an instance of an interface." when calling .IndexCreate(). We only recently needed to use "IndexCreate" when using special types like geo_point. The Addupdate creates the indexes fine for normal types.

Are there any plan to support IList with this API?

damienbod commented 7 years ago

Hi @jayslife thanks, no I have no plans to support IList.

Greetings Damien