use of org.jbei.ice.lib.search.SearchController in project ice by JBEI.
the class Entries method getSearchResults.
protected List<Long> getSearchResults(SearchQuery searchQuery) {
SearchController searchController = new SearchController();
SearchResults searchResults = searchController.runSearch(userId, searchQuery);
// todo : inefficient: have search return ids only
List<Long> results = new LinkedList<>();
for (SearchResult result : searchResults.getResults()) {
results.add(result.getEntryInfo().getId());
}
return results;
}
Aggregations