You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, and thanks for this gem, which works great and has both a great API and clear documentation.
Here is a simplified version of the code I'm using to demonstrate what I'm facing:
classUser < ApplicationRecordincludePgSearch::Modelpg_search_scope:search,against: :name,ignoring: :accentsendUser.upsert_all([{name: 'Elodie',name: 'Élodie'}])User.search('Élodie').collect(&:name)=>['Elodie','Élodie']# results are ranked by id ascending by default, though the second is a better match
How can I boost ranking for results where the search query matches the records without ignoring accents? Is that possible or should I sort the result set manually?
The text was updated successfully, but these errors were encountered:
Hello, and thanks for this gem, which works great and has both a great API and clear documentation.
Here is a simplified version of the code I'm using to demonstrate what I'm facing:
How can I boost ranking for results where the search query matches the records without ignoring accents? Is that possible or should I
sort
the result set manually?The text was updated successfully, but these errors were encountered: