Note search fails with specific characters

Bug report

Searching for a note fails when using some characters. I have specifically had issues with the & character but during testing it also seems to happen with other characters like %

When a note search contains one of these characters it simply always results in no notes found.

Environment

  • Platform: Manjaro Linux
  • Platform version: 21.2.3
  • App Version: 5.4.3

How to reproduce

  1. Create note clearly containing the character
  2. Search normally and see it show up
  3. Search including the character and see it fail
  4. Search with only the character and see it still fail

Hi Magnus,

Thank you for the report. I’ve reproduced the issue.
Looks like the word tokenizer (for Japanese) messes up the queries with those special characters.
I’ll look into it and see how to fix it.