Search in sources :

Example 1 with SearchDataCatalogDTO

use of com.odysseusinc.arachne.portal.api.v1.dto.SearchDataCatalogDTO 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();
}
Also used : QueryResponse(org.apache.solr.client.solrj.response.QueryResponse) SearchDataCatalogDTO(com.odysseusinc.arachne.portal.api.v1.dto.SearchDataCatalogDTO) SearchResult(com.odysseusinc.arachne.portal.service.impl.solr.SearchResult) SolrQuery(org.apache.solr.client.solrj.SolrQuery)

Aggregations

SearchDataCatalogDTO (com.odysseusinc.arachne.portal.api.v1.dto.SearchDataCatalogDTO)1 SearchResult (com.odysseusinc.arachne.portal.service.impl.solr.SearchResult)1 SolrQuery (org.apache.solr.client.solrj.SolrQuery)1 QueryResponse (org.apache.solr.client.solrj.response.QueryResponse)1