Beispiel #1
0
        private static async Task Search(ElasticsearchHelper <Product, Guid> elasticsearchHelper, SearchDescriptor <Product> query)
        {
            List <Product> result = await elasticsearchHelper.SearchDocumentAsync(query);

            foreach (Product product in result)
            {
                Console.WriteLine(product.Name);
            }
        }