Example #1
0
        public void BulkTest()
        {
            var documents = new List <Document> {
                new Document("1", "one"), new Document("2", "two"), new Document("3", "three")
            };

            elastic.BulkIndex <Document>(documents, "DocumentId");
            elastic.Refresh();
            var response = elastic.GetResponseOfQuery <Document>(Elastic.MakeMatchQuery("one", "content"));

            Assert.Equal("one", response.Hits.ToList().Single().Source.Content);
        }