var searchResponse = client.Search<Conditions>(s => s .From(0) .Size(10) .Query(q => q .Match(m => m .Field(f => f.Name) .Query(name) ) ) ); var people = searchResponse.Documents;
ES索引精准筛选,上面的是模糊查询,根据传的name值,判断索引中是否有这个值