protected void AddFilter_Click(object sender, EventArgs e) { FilterQuery fq = new FilterQuery(((LinkButton)sender).CommandArgument); FilterQueryCollection existingQueries = new FilterQueryCollection(hidFilterQueries.Value); existingQueries.Add(fq); Query(null, 0, hidLoggingId.Value, existingQueries); }
public void FilterQueriesLimitResults() { var fq = new FilterQueryCollection(); fq.Add(new FilterQuery("url", "blog")); var results = PlainSearch.Execute("crownpeak", new QueryOptions() { Rows = 10, FilterQueries = fq }); Assert.IsTrue(results.TotalCount == 87, "Expected 87 results, found " + results.TotalCount); }