/** search for the project corresponding to the query. */ @Transactional(readOnly = true) public List<Project> search(String query) { log.debug("REST request to search Projects for query {}", query); return StreamSupport.stream( projectSearchRepository.search(queryStringQuery(query)).spliterator(), false) .collect(Collectors.toList()); }