Searching ElasticSearch using NEST C# Client

前端 未结 4 1183
-上瘾入骨i
-上瘾入骨i 2021-02-06 10:37

I started looking around for a search engine and after some reading I decided going with ElasticSearch (which is quite amazing :)), my project is in C# so I looked around for a

4条回答
  •  后悔当初
    2021-02-06 11:27

    Just to confirm

    elasticClient.Search(s => s.Query(q => q.QueryString(d => d.Query(queryString))));

    Is the preferred way to search and the fact it feels a bit long is because there are alot of options you can play with that are not used here. I'm always open on suggestions to make it shorter!

    The string overload is deprecated but wont be removed from NEST. I'll update the obsolete message to explicitly mention this.

提交回复
热议问题