C# 使用嵌套检索满足谓词的ElasticSearch文档
要从ElasticSearch索引检索所有文档,我可以使用C# 使用嵌套检索满足谓词的ElasticSearch文档,c#,
elasticsearch,nest,C#,
elasticsearch,Nest,要从ElasticSearch索引检索所有文档,我可以使用 var rsp = await client.SearchAsync<TDocument>(s => s.Index("an-index").Query(q => q.MatchAll())); var rsp=wait client.SearchAsync(s=>s.Index(“索引”).Query(q=>q.MatchAll()); 如何仅检索满足简单谓词的文档?类似于: Func&
var rsp = await client.SearchAsync<TDocument>(s => s.Index("an-index").Query(q => q.MatchAll()));
var rsp=wait client.SearchAsync(s=>s.Index(“索引”).Query(q=>q.MatchAll());
如何仅检索满足简单谓词的文档?类似于:
Func<TDocument, bool> predicate;
var rsp = await client.SearchAsync<TDocument>(s => s.Index("an-index").Query(q => q.Match(predicate)));
Func谓词;
var rsp=await client.SearchAsync(s=>s.Index(“索引”).Query(q=>q.Match(谓词));