Esempio n. 1
0
        public virtual IQueryResults Get(ApiSearchRequest request)
        {
            if (request == null || string.IsNullOrEmpty(request.PageId))
            {
                return(null);
            }

            var query = new SearchQuery <T>(request, _searchPageParser);

            return(_searchFactory.For <T>().GetItems(query));
        }
        public ActionResult SearchListing(SearchRequest request)
        {
            if (request == null || string.IsNullOrEmpty(request.PageId))
            {
                return(null);
            }

            var query = new SearchQuery <SearchResultItem>(request, _pageParser);

            var results = _factory.For <SearchResultItem>().GetItems(query);

            return(View(results));
        }