コード例 #1
0
        public void TestExample()
        {
            IList <FacetResult> results = new MultiCategoryListsFacetsExample().RunSearch();

            assertEquals(2, results.size());
            assertEquals("dim=Author path=[] value=5 childCount=4\n  Lisa (2)\n  Bob (1)\n  Susan (1)\n  Frank (1)\n", results[0].ToString());
            assertEquals("dim=Publish Date path=[] value=5 childCount=3\n  2010 (2)\n  2012 (2)\n  1999 (1)\n", results[1].ToString());
        }
コード例 #2
0
        /// <summary>Runs the search example and prints the results.</summary>
        public static void Main(string[] args)
        {
            Console.WriteLine("Facet counting over multiple category lists example:");
            Console.WriteLine("-----------------------");
            IList <FacetResult> results = new MultiCategoryListsFacetsExample().RunSearch();

            Console.WriteLine("Author: " + results[0]);
            Console.WriteLine("Publish Date: " + results[1]);
        }