That title’s not great sorry. Anyway - let’s say i’ve indexed 3 records
that have these name fields:
St Joseph’s Primary
St Mark’ Primary
St Mary’s Secondary School
And my search term is “St Joseph’s Primary School”
How can i do my search so that “St Joseph’s Primary” is the top result?
I tried splitting the name with ‘OR’, like this (i’m using
acts_as_ferret in rails)
School.find_with_ferret(school.name.gsub(" OR "))
But this returned me all of the records (no problem), but with St
Joseph’s Primary not being the top result (not good enough). Since my
required record is the closest match (intuitively) i feel like i should
be able to get it as the top result.
Can anyone help?