コード例 #1
0
        public ActionResult Index(SearchParameters parameters)
        {
            parameters.SetFacetOpenData();
            parameters.AddComplexFacetsIfMissing();
            var searchResult = _searchService.Search(parameters);

            var model = new SearchViewModel(parameters, searchResult);

            model.EnabledFacets = model.FacetsOpenData();

            return(View(model));
        }