Пример #1
0
 /// <summary>
 /// Sole constructor.
 /// </summary>
 public DrillSidewaysResult(Facets facets, TopDocs hits)
 {
     this.Facets = facets;
     this.Hits   = hits;
 }
Пример #2
0
 /// <summary>
 /// Create this, with the specified default <see cref="Facets"/>
 /// for fields not included in <paramref name="dimToFacets"/>.
 /// </summary>
 public MultiFacets(IDictionary <string, Facets> dimToFacets, Facets defaultFacets = null)
 {
     this.dimToFacets   = dimToFacets;
     this.defaultFacets = defaultFacets;
 }
Пример #3
0
 /// <summary>
 /// Sole constructor. </summary>
 public DrillSidewaysResult(Facets facets, TopDocs hits)
 {
     this.Facets = facets;
     this.Hits = hits;
 }
 private void AssertCorrectResults(Facets facets)
 {
     Assert.AreEqual(5, facets.GetSpecificValue("Band"));
     Assert.AreEqual("dim=Band path=[] value=5 childCount=2\n  Rock & Pop (4)\n  Punk (1)\n", facets.GetTopChildren(10, "Band").ToString());
     Assert.AreEqual("dim=Band path=[Rock & Pop] value=4 childCount=4\n  The Beatles (1)\n  U2 (1)\n  REM (1)\n  Dave Matthews Band (1)\n", facets.GetTopChildren(10, "Band", "Rock & Pop").ToString());
     Assert.AreEqual("dim=Author path=[] value=3 childCount=3\n  Mark Twain (1)\n  Stephen King (1)\n  Kurt Vonnegut (1)\n", facets.GetTopChildren(10, "Author").ToString());
 }
Пример #5
0
 /// <summary>
 /// Create this, with the specified default <see cref="Facets"/>
 /// for fields not included in <paramref name="dimToFacets"/>. 
 /// </summary>
 public MultiFacets(IDictionary<string, Facets> dimToFacets, Facets defaultFacets = null)
 {
     this.dimToFacets = dimToFacets;
     this.defaultFacets = defaultFacets;
 }