This is because when using Elasticsearch.NET, specifying the type like that
is actually specifying what type the expected response should be serialized
into, rather than the type of object you're sending to Elasticsearch.
Drop the type completely and client.Index should return a
This is probably a bug of the .NET client API, and you should log it on
github where they monitor issues for it
You might find this alternative library useful:
https://github.com/synhershko/NElasticsearch available from nuget as well
https://www.nuget.org/packages/NElasticsearch/
--
Itamar
Hi,
(let me know if this is not the right place to post ElasticSearch.Net
questions).
I'm indexing a document of type User through ElasticSearch.Net with this
command (key is a string guid):
client.IndexUser(index, user, key, user);
This invokes the serializer and stores the json in my ES