@Test(expected = DSpaceBadRequestException.class) public void testInvalidSearchFacet() throws Exception { queryBuilder.buildFacetQuery(context, scope, discoveryConfiguration, null, query, Arrays.asList(searchFilter), "item", page, "test"); }
public DiscoverQuery buildFacetQuery(Context context, IndexableObject scope, DiscoveryConfiguration discoveryConfiguration, String prefix, String query, List<SearchFilter> searchFilters, String dsoType, Pageable page, String facetName) throws DSpaceBadRequestException { List<String> dsoTypes = dsoType != null ? singletonList(dsoType) : emptyList(); return buildFacetQuery( context, scope, discoveryConfiguration, prefix, query, searchFilters, dsoTypes, page, facetName); }
DiscoverQueryBuilder implements InitializingBean { public DiscoverQuery buildFacetQuery(Context context, IndexableObject scope, DiscoveryConfiguration discoveryConfiguration, String prefix, String query, List<SearchFilter> searchFilters, String dsoType, Pageable page, String facetName) throws DSpaceBadRequestException { List<String> dsoTypes = dsoType != null ? singletonList(dsoType) : emptyList(); return buildFacetQuery( context, scope, discoveryConfiguration, prefix, query, searchFilters, dsoTypes, page, facetName); } }
DiscoverQueryBuilder implements InitializingBean { public DiscoverQuery buildFacetQuery(Context context, IndexableObject scope, DiscoveryConfiguration discoveryConfiguration, String prefix, String query, List<SearchFilter> searchFilters, String dsoType, Pageable page, String facetName) throws DSpaceBadRequestException { List<String> dsoTypes = dsoType != null ? singletonList(dsoType) : emptyList(); return buildFacetQuery( context, scope, discoveryConfiguration, prefix, query, searchFilters, dsoTypes, page, facetName); }  }
DiscoverQueryBuilder implements InitializingBean { public DiscoverQuery buildFacetQuery(Context context, IndexableObject scope, DiscoveryConfiguration discoveryConfiguration, String prefix, String query, List<SearchFilter> searchFilters, String dsoType, Pageable page, String facetName) throws DSpaceBadRequestException { List<String> dsoTypes = dsoType != null ? singletonList(dsoType) : emptyList(); return buildFacetQuery( context, scope, discoveryConfiguration, prefix, query, searchFilters, dsoTypes, page, facetName); }  @Override void afterPropertiesSet(); DiscoverQuery buildQuery(Context context, IndexableObject scope,
                                    DiscoveryConfiguration discoveryConfiguration,
                                    String query, List<SearchFilter> searchFilters,
                                    String dsoType, Pageable page); DiscoverQuery buildQuery(Context context, IndexableObject scope,
                                    DiscoveryConfiguration discoveryConfiguration,
                                    String query, List<SearchFilter> searchFilters,
                                    List<String> dsoTypes, Pageable page); DiscoverQuery buildFacetQuery(Context context, IndexableObject scope,
                                         DiscoveryConfiguration discoveryConfiguration,
                                         String prefix, String query, List<SearchFilter> searchFilters,
                                         String dsoType, Pageable page, String facetName); DiscoverQuery buildFacetQuery(Context context, IndexableObject scope,
                                         DiscoveryConfiguration discoveryConfiguration,
                                         String prefix, String query, List<SearchFilter> searchFilters,
                                         List<String> dsoTypes, Pageable page, String facetName); void setIndexableFactories(List<IndexFactory> indexableFactories); }
DiscoverQueryBuilder implements InitializingBean { public DiscoverQuery buildFacetQuery(Context context, IndexableObject scope, DiscoveryConfiguration discoveryConfiguration, String prefix, String query, List<SearchFilter> searchFilters, String dsoType, Pageable page, String facetName) throws DSpaceBadRequestException { List<String> dsoTypes = dsoType != null ? singletonList(dsoType) : emptyList(); return buildFacetQuery( context, scope, discoveryConfiguration, prefix, query, searchFilters, dsoTypes, page, facetName); }  @Override void afterPropertiesSet(); DiscoverQuery buildQuery(Context context, IndexableObject scope,
                                    DiscoveryConfiguration discoveryConfiguration,
                                    String query, List<SearchFilter> searchFilters,
                                    String dsoType, Pageable page); DiscoverQuery buildQuery(Context context, IndexableObject scope,
                                    DiscoveryConfiguration discoveryConfiguration,
                                    String query, List<SearchFilter> searchFilters,
                                    List<String> dsoTypes, Pageable page); DiscoverQuery buildFacetQuery(Context context, IndexableObject scope,
                                         DiscoveryConfiguration discoveryConfiguration,
                                         String prefix, String query, List<SearchFilter> searchFilters,
                                         String dsoType, Pageable page, String facetName); DiscoverQuery buildFacetQuery(Context context, IndexableObject scope,
                                         DiscoveryConfiguration discoveryConfiguration,
                                         String prefix, String query, List<SearchFilter> searchFilters,
                                         List<String> dsoTypes, Pageable page, String facetName); void setIndexableFactories(List<IndexFactory> indexableFactories);  }