Add accent insensitive query mode
See original GitHub issueProblem
Currently there is a possibility to search a database case insensitive with QueryMode.insensitive
. I would like to additionally search the database accent insensitive.
Suggested solution
Extend the QueryMode.insensitive
to be also accent insensitive or add the QueryMode.accentInsensitive
with the possibility to combine the mode with QueryMode.insensitive
(it would probably be good to rename QueryMode.insensitive
to QueryMode.caseInsensitive
)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:16
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Accent-Insensitive Query and Sort
You use the nls_sort session parameter to specify a case-insensitive or accent-insensitive sort, this is accomplished by: Appending a " _CI" to an...
Read more >Configuring SQL Server Accent-Insensitivity - CodeProject
This article describes the steps to re-configure SQL Server so that queries return accent-insensitive results.
Read more >How to make an accent insensitive `MATCH() AGAINST ...
Another solution is to use a certain collation for your varchar column, let's say latin1_general_ci . This way, the search will always convert ......
Read more >How to do case-insensitive and accent-insensitive search in ...
Case-insensitive search; Accent-insensitive search; Sort rows regardless of case or accents; Define search and sorting rules for a column ...
Read more >Accent Insensitive Search in Sitefinity - Progress Community
For Lucene Search service: NOTE: The below solution will replace any accented characters with their unaccented equivalents only during indexing ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for your answer! So far I haven’t implemented anything, but I will probably follow this Stack Overflow answer and use the extension
unaccent
to solve it. I hope that this extension can be installed directly in Postgres and then used with the Prisma client via$queryRaw
.Of course, the approach does not work for the other databases and the first search result, e.g. for MySQL is not promising.
@friebetill If you’ve had any success with installing the module and using the function in a $rawQuery (and still have access to it, because it’s been a while since you posted), please share here because I’m racking my brains to find out how to implement this 😃