full implementation for searching reusable blocks in cloud.