Im using the gem pg_search to perform fulltext search on my postgres db. I've a scope like this:
pg_search_scope :fulltext, against: [:firstname, :lastname, :middlename],
using: {
tsearch: { prefix: true },
trigram: {
:threshold => 0.2
}
}
When i search with the string gro I would like that the records that match the exactly word gro have rank higher than records that match words like group (group contain gro).
Any idea, if there are some settings to do this?