/** * Search the current workspace using the supplied full-text search expression. * * @param fullTextSearchExpression the full-text search expression * @param maxResults the maximum number of results that are to be returned; always positive * @param offset the number of initial results to skip, or 0 if the first results are to be returned * @return the results of the search; never null * @throws IllegalArgumentException if the expression is null */ public QueryResults search( final String fullTextSearchExpression, int maxResults, int offset ) { FullTextSearchRequest request = requests.search(getCurrentWorkspaceName(), fullTextSearchExpression, maxResults, offset); QueryResults results = new org.modeshape.graph.query.process.QueryResults(request.getResultColumns(), request.getStatistics(), request.getTuples()); return results; }