예제 #1
0
  /** 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());
  }