/// <summary> /// /// </summary> /// <remarks></remarks> /// <seealso cref=""/> /// <param name="searchCriteria"></param> /// <returns></returns> public SearchModel UpdateFacets(SearchCriteria searchCriteria) { MetadataReader.ListOfMetadata = MetadataReader.GetAllMetadataDatasetsWithListOfSearchCriteria(MetadataReader.ListOfMetadata, searchCriteria); //facets this.WorkingSearchModel.SearchComponent.Facets = FacetBuilder.GetAllNodesAsListFromData(FacetBuilder.CATEGORY_TYPE, MetadataReader.ListOfMetadata); return(this.WorkingSearchModel); }
/// <summary> /// /// </summary> /// <remarks></remarks> /// <seealso cref=""/> /// <param name="searchCriteria"></param> /// <param name="pageSize"></param> /// <param name="currentPage"></param> /// <returns></returns> public SearchModel Get(SearchCriteria searchCriteria, int pageSize = 10, int currentPage = 1) { MetadataReader.ListOfMetadata = MetadataReader.GetAllMetadataDatasets(); MetadataReader.ListOfMetadata = MetadataReader.GetAllMetadataDatasetsWithListOfSearchCriteria(MetadataReader.ListOfMetadata, searchCriteria); this.WorkingSearchModel.ResultComponent = ResultObjectBuilder.ConvertListOfMetadataToSearchResultObject(MetadataReader.ListOfMetadata, pageSize, currentPage); return(this.WorkingSearchModel); }