use of com.odysseusinc.arachne.portal.api.v1.dto.ExpertListSearchResultDTO in project ArachneCentralAPI by OHDSI.
the class BaseExpertFinderController method list.
@ApiOperation("Get expert list")
@RequestMapping(value = "/api/v1/user-management/users", method = GET)
public JsonResult<ExpertListSearchResultDTO> list(@ModelAttribute SearchExpertListDTO searchDTO) throws IOException, SolrServerException, NoSuchFieldException {
JsonResult result = new JsonResult<ExpertListSearchResultDTO>(NO_ERROR);
SolrQuery solrQuery = conversionService.convert(searchDTO, SolrQuery.class);
SearchResult searchResult = userService.search(solrQuery);
result.setResult(this.conversionService.convert(searchResult, ExpertListSearchResultDTO.class));
return result;
}
Aggregations