Well when we are implementing simple search its something like (searching for a song):
Model:
def self.search(query5)
where("name LIKE ? ","%#{query5.downcase}%")
end
but when the query is something like James TW when you love someone and the name of the song is when you love some James TW it doesnt return anything. So what do I do about that hat the correct logic for that?