Esempio n. 1
0
        public void TestDrillDown()
        {
            using RangeFacetsExample example = new RangeFacetsExample();
            example.Index();
            TopDocs hits = example.DrillDown(example.PAST_SIX_HOURS);

            assertEquals(22, hits.TotalHits);
        }
Esempio n. 2
0
        /// <summary>Runs the search and drill-down examples and prints the results.</summary>
        public static void Main(string[] args)
        {
            using RangeFacetsExample example = new RangeFacetsExample();
            example.Index();

            Console.WriteLine("Facet counting example:");
            Console.WriteLine("-----------------------");
            Console.WriteLine(example.Search());

            Console.WriteLine("\n");
            Console.WriteLine("Facet drill-down example (timestamp/Past six hours):");
            Console.WriteLine("---------------------------------------------");
            TopDocs hits = example.DrillDown(example.PAST_SIX_HOURS);

            Console.WriteLine(hits.TotalHits + " TotalHits");
        }