use of com.odysseusinc.arachne.portal.service.impl.solr.SearchResult in project ArachneCentralAPI by OHDSI.
the class BaseDataSourceServiceImpl method getExcludedOptions.
private Map<String, List<String>> getExcludedOptions(IUser user) throws NoSuchFieldException, IOException, SolrServerException {
SolrQuery solrQuery = conversionService.convert(new SearchDataCatalogDTO(true), SolrQuery.class);
solrQuery = addFilterQuery(solrQuery, user);
QueryResponse solrResponse = solrSearch(solrQuery);
SearchResult<Long> searchResult = new SearchResult<>(solrQuery, solrResponse, Collections.<Long>emptyList());
return searchResult.excludedOptions();
}
Aggregations