开发者

elasticsearch c#/.net client recommendation [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidan开发者_JAVA百科ce. Closed 11 years ago.

Which elasticsearch c#/.net client do you recommend?

1 - Nest: https://github.com/Mpdreamz/NEST/commits/master

2 - elasticsearch.net: https://github.com/medcl/ElasticSearch.Net/commits/master


IMHO, I think both still need more work as they don't have complete coverage of the ElasticSearch REST API, percolate and complete Query DSLs being the most conspicuous missing.

Having used NEST I think that is more suitable if you want strongly typed results:-

QueryResponse<Jobtitle> queryResults = _client.Search<Jobtitle>(search);

where as ElasticSearch.Net you get back something like:-

var result = client.QueryDSL.Search(index, new string[] { "type" }, query, 0, 5);
foreach (var VARIABLE in result.GetHits().Hits)
{
Console.WriteLine(VARIABLE.Fields["name"]);
}

Whilst both APIs are missing features, they are on github so you can fork and help fill in the missing features.

I chose in the end to generate my own simple client from the thrift IDL

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜