// Create the search expression and the query
SearchQuery q = new SearchQueryImpl(site);
q.withText(true, queryString);
q.withVersion(Resource.LIVE);
q.withRececyPriority();
q.withOffset(offset);
q.withLimit(limit);
q.withTypes(Page.TYPE);
// Return the result