atomic-server icon indicating copy to clipboard operation
atomic-server copied to clipboard

Search is case-sensitive

Open JobEijdems opened this issue 3 years ago • 1 comments

A user will probably expect the search feature to be case-insensitive, because most other search engines are. If they get no hit, they will assume the thing doesn't exit, rather than to try different casings. A simple solution might be to just remove the case-sensitivity in all searches, but maybe a more complicated solution is preferable, e.g. do a case-sensitive search first and if that has no hits, do a case-insensitive search after. Or maybe start with a case-insensitive search, but put the exact matches higher in the results.

JobEijdems avatar Aug 01 '22 09:08 JobEijdems

We could downcase all text strings during both indexing and queries (simplest solution for now), but I'd rather not remove capitalization information index time.

I'm planning on making some major changes to search sometime soon (see #226), and I'll need to update tantivy. I'll fix this issue then too.

joepio avatar Aug 02 '22 11:08 joepio