全文検索
edit
SELECT order.* FROM order JOIN order_detail ON order.id = order_detail.order_id JOIN goods order_detail.goods_id = goods.id WHERE goods.name = 'book'
$rs->search({ "goods.name" => 'book', },{ join => {order_detail => 'goods'} });