/** * @param query the query string * @param contexts the list of site contexts (locationIds) to limit the search to */ public QuerySearch(String query, String[] contexts) { super(); this.addRestriction( new Restriction(queryField, query) ); this.addRestriction( new Restriction(contextsField, contexts) ); }