Tests.QueryDSLTests.TestConstantSocreWithTermQuery C# (CSharp) Method

TestConstantSocreWithTermQuery() private method

private TestConstantSocreWithTermQuery ( ) : void
return void
        public void TestConstantSocreWithTermQuery()
        {
            var query = new TermQuery("gender", "true");

            var constanQuery = new ConstantScoreQuery(query);
            
            var result = client.Search(index, "type" , constanQuery, 0, 5);
            
            Assert.AreEqual(50, result.GetTotalCount());
            Assert.AreEqual(5, result.GetHits().Hits.Count);
        }