コード例 #1
0
 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);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }