public QueryResponse search(Resource resource,SolrQuery query) throws SolrServerException, IOException {
  String idQuery=termQuery(SearchFields.URI_FIELD_NAME,SearchFields.getResourceID(resource));
  query.setQuery(query.getQuery() + " AND " + idQuery);
  return search(query);
}

public QueryResponse search ( Resource resource , SolrQuery query ) throws SolrServerException , IOException { String idQuery = termQuery ( SearchFields . URI_FIELD_NAME , SearchFields . getResourceID ( resource ) ) ; query . setQuery ( query . getQuery ( ) + " AND " + idQuery ) ; return search ( query ) ; }
evaluates the given query only for the given resource .
