Beispiel #1
0
        /// <summary>Runs the search and drill-down examples and prints the results.</summary>
        public static void Main(string[] args)
        {
            Console.WriteLine("Facet counting example:");
            Console.WriteLine("-----------------------");
            FacetResult result = new ExpressionAggregationFacetsExample().RunSearch();

            Console.WriteLine(result);
        }
        public void TestSimple()
        {
            FacetResult result = new ExpressionAggregationFacetsExample().RunSearch();

            //assertEquals("dim=A path=[] value=3.9681187 childCount=2\n  B (2.236068)\n  C (1.7320508)\n", result.toString());
            // LUCENENET TODO: string output is not quite the same as in Java, but it is close enough not to be considered a bug
            assertEquals("dim=A path=[] value=3.968119 childCount=2\n  B (2.236068)\n  C (1.732051)\n", result.toString());
        }
Beispiel #3
0
        public void TestSimple()
        {
            FacetResult result = new ExpressionAggregationFacetsExample().RunSearch();

            assertEquals("dim=A path=[] value=3.9681187 childCount=2\n  B (2.236068)\n  C (1.7320508)\n", result.ToString(CultureInfo.InvariantCulture));
        }