public override FacetResult GetTopChildren(int topN, string dim, params string[] path) { if (topN <= 0) { throw new ArgumentOutOfRangeException(nameof(topN), "topN must be > 0 (got: " + topN + ")"); // LUCENENET specific - changed from IllegalArgumentException to ArgumentOutOfRangeException (.NET convention) } if (path.Length > 0) { throw new ArgumentOutOfRangeException(nameof(path), "path should be 0 length"); // LUCENENET specific - changed from IllegalArgumentException to ArgumentOutOfRangeException (.NET convention) } OrdRange ordRange = state.GetOrdRange(dim); if (ordRange == null) { throw new ArgumentException("dimension \"" + dim + "\" was not indexed"); } return(GetDim(dim, ordRange, topN)); }
public override FacetResult GetTopChildren(int topN, string dim, params string[] path) { if (topN <= 0) { throw new ArgumentException("topN must be > 0 (got: " + topN + ")"); } if (path.Length > 0) { throw new ArgumentException("path should be 0 length"); } OrdRange ordRange = state.GetOrdRange(dim); if (ordRange == null) { throw new ArgumentException("dimension \"" + dim + "\" was not indexed"); } return(GetDim(dim, ordRange, topN)); }