giletvin / ornidroid

A bird guide for android devices
10 stars 4 forks source link

Recherche par nom #143

Closed giletvin closed 9 years ago

giletvin commented 9 years ago

I use this app and it is very helpful. But there is a problem. The search only match at the beginning of the words. In Germany there are Buntspecht, Grünspecht, Schwarzspecht. If I search specht I'll get no match. I use wildcards (*), but the search doesn't find a bird name. There is no hint at the Website

giletvin commented 9 years ago

Abandonné SQLite FTS is amazingly fast, but allows only prefix (e.g. query) matches by default. For Dash, I needed to persuade it to also perform contains matches (e.g. *query) or suffix matches (e.g. *query).

https://blog.kapeli.com/sqlite-fts-contains-and-suffix-matches