Есть ли способ преобразовать части MATCH
и AGAINST
в Arel ?
Я не смог найти ничего об этом в исходном коде Arel.
Я использую Rails 3.
SELECT gigs.time, gigs.channel_id, gigs.song_id, gigs.id,
MATCH (songs.title) AGAINST (?) AS song_score,
MATCH (artists.name) AGAINST (?) AS artist_score
FROM songs
INNER JOIN artists ON artists.id = songs.artist_id
INNER JOIN gigs ON gigs.song_id = songs.id
WHERE MATCH (artists.name) AGAINST (?) OR
MATCH (songs.title) AGAINST (?)
HAVING (artist_score + song_score) > 0