public async Task <StringResponse> IndexAsync(string json) { PostData post = PostData.String(json); return(await LowClient.IndexAsync <Elasticsearch.Net.StringResponse>(index, type, post)); }
public void Index(string json) { PostData post = PostData.String(json); var res = LowClient.Index <Elasticsearch.Net.StringResponse>(index, type, post); }