예제 #1
0
        private CustomSearchResult Search(CatalogEntrySearchCriteria criteria, IContent currentContent)
        {
            ISearchResults searchResult = _search.Search(criteria);

            return(new CustomSearchResult
            {
                ProductViewModels = CreateProductViewModels(searchResult)
            });
        }
예제 #2
0
        private CatalogEntrySearchCriteria CreateFullSearchCriteria(IContent currentContent, FilterOptionViewModel filterOptions)
        {
            var criteria = new CatalogEntrySearchCriteria();

            if (currentContent is NodeContent nodeContent)
            {
                criteria.CatalogName = nodeContent.Code;
            }

            return(criteria);
        }
예제 #3
0
 public virtual ISearchResults Search(CatalogEntrySearchCriteria criteria)
 {
     Initialize();
     return(_searchManager.Search(criteria));
 }