0

I am working with QSQLITE database in qt and attempt to implement fuzzy search in our program our sql query is something like this:

select name from things where name like '%arg%'

it's not the same the query is longer has joins and etc. I tried using SOUND and SOUNDEX() but I think none of them is supported in QSQLITE is there any way I can implement fuzzy search here?

Zoli
  • 588
  • 2
  • 8
  • 13

1 Answers1

0

For soundex support, you would have to recompile the SQLite library embedded in Qt.

There is no other built-in 'fuzzy' function. Either implement your own custom function, or store a normalized version of your string in the database so that you can compare it directly.

Community
  • 1
  • 1
CL.
  • 173,858
  • 17
  • 217
  • 259