Beispiel #1
0
 /// <summary>
 /// Sole constructor. </summary>
 public SortedSetDocValuesFacetField(string dim, string label)
     : base("dummy", TYPE)
 {
     FacetField.VerifyLabel(label);
     FacetField.VerifyLabel(dim);
     this.Dim   = dim;
     this.Label = label;
 }
Beispiel #2
0
 /// <summary>
 /// Creates this from <paramref name="dim"/> and <paramref name="path"/> and an
 /// association
 /// </summary>
 public AssociationFacetField(BytesRef assoc, string dim, params string[] path)
     : base("dummy", TYPE)
 {
     FacetField.VerifyLabel(dim);
     foreach (string label in path)
     {
         FacetField.VerifyLabel(label);
     }
     this.Dim   = dim;
     this.Assoc = assoc;
     if (path.Length == 0)
     {
         throw new System.ArgumentException("path must have at least one element");
     }
     this.Path = path;
 }