Forage.SearchPostgreSQL.naive_search_params
You're seeing just the function
naive_search_params
, go back to Forage.SearchPostgreSQL module for more information.
Link to this function
naive_search_params(params, field)
Convert a search term into params that can be used in a forage plan. Search will be case-insensitive.
This is implemented internally as an ILIKE
operator.
By default, the ILIKE
operator doesn't ignore accents.
If you want to ignore accents, you need to use unaccented_search_params/2
and prepare a special column in your database (see here).
If it makes sense for your application, you can implement better search yourself.