protected override QueryRelatedLinks InitialiseViewModel(Rendering rendering, DataSource dataSource)
        {
            var viewModel     = this.Map <Feature.TemplatesModules.Modules.TemplatesModules.Content.QueryRelatedLinks.QueryRelatedLinks>(dataSource.Item);
            var searchContext = _searchService.CreateSearchContext(CurrentItem, dataSource.Item);
            var searchResults = _searchService.Search(searchContext, dataSource.Item);

            // TODO: we could append the searchContext to the end of the view more link
            // if it links to a collection or search then that would make it "pre-faceted"

            viewModel.Links = searchResults.Results.Select(ToQueryRelatedLinkItem);

            return(viewModel);
        }
        protected override QueryFeatureListing InitialiseViewModel(Rendering rendering, DataSource dataSource)
        {
            var searchContext = _searchService.CreateSearchContext(CurrentItem, dataSource.Item);

            // feature listing has maximum 4 results - the main feature and upto three more
            searchContext.PageSize.Set("4");

            var searchResults = _searchService.Search(searchContext, dataSource.Item);
            var viewModel     = new QueryFeatureListing(searchResults.Results.Select(ToQueryFeatureListingItem));

            Map(viewModel, dataSource.Item);

            return(viewModel);
        }