I am trying to index json string file to Elastic Search using C# NEST library. I found this post which is related. But there is a syntax error at .Index<string>
var indexResponse = _elasticClient.LowLevel.Index<string>("index-name", "type-name", json);
The error is
The type 'string' cannot be used as type parameter 'TResponse' in the generic type or method 'IElasticLowLevelClient.Index(string, string, PostData, IndexRequestParameters)'. There is no implicit reference conversion from 'string'