Package org.dspace.app.rest.converter
Class DiscoverFacetsConverter
- java.lang.Object
-
- org.dspace.app.rest.converter.DiscoverFacetsConverter
-
@Component public class DiscoverFacetsConverter extends Object
-
-
Constructor Summary
Constructors Constructor Description DiscoverFacetsConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFacetValues(org.dspace.core.Context context, org.dspace.discovery.DiscoverResult searchResult, SearchResultsRest resultsRest, org.dspace.discovery.configuration.DiscoveryConfiguration configuration, Projection projection)Fill the facet values information in the SearchResultsRest using the information in the api DiscoverResult object according to the configuration applied to the discovery querySearchResultsRestconvert(org.dspace.core.Context context, String query, List<String> dsoTypes, String configurationName, String dsoScope, List<SearchFilter> searchFilters, org.springframework.data.domain.Pageable page, org.dspace.discovery.configuration.DiscoveryConfiguration configuration, org.dspace.discovery.DiscoverResult searchResult, Projection projection)
-
-
-
Method Detail
-
convert
public SearchResultsRest convert(org.dspace.core.Context context, String query, List<String> dsoTypes, String configurationName, String dsoScope, List<SearchFilter> searchFilters, org.springframework.data.domain.Pageable page, org.dspace.discovery.configuration.DiscoveryConfiguration configuration, org.dspace.discovery.DiscoverResult searchResult, Projection projection)
-
addFacetValues
public void addFacetValues(org.dspace.core.Context context, org.dspace.discovery.DiscoverResult searchResult, SearchResultsRest resultsRest, org.dspace.discovery.configuration.DiscoveryConfiguration configuration, Projection projection)Fill the facet values information in the SearchResultsRest using the information in the api DiscoverResult object according to the configuration applied to the discovery query- Parameters:
context- The relevant DSpace contextsearchResult- The DiscoverResult containing the discovery resultresultsRest- The SearchResultsRest that need to be filled inconfiguration- The DiscoveryConfiguration applied to the query
-
-