Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Searching for a note with "R&D" in it returns nothing #276

Open
marcxm opened this issue Jan 10, 2025 · 1 comment
Open

Searching for a note with "R&D" in it returns nothing #276

marcxm opened this issue Jan 10, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@marcxm
Copy link

marcxm commented Jan 10, 2025

As in the title. I assume it has something to do with the way Whoosh processes it, but none of the ways I know to escape ampersand worked. What I've tried:

"R&D"
'R&D'
R&D
R D
R*D

@dullage
Copy link
Owner

dullage commented Jan 14, 2025

Hi @marcxm. The trouble here is that R&D will get "tokenised" into ["R", "D"] with the ampersand thrown away as irrelevant. Then, these tokens are also filtered out as they are single characters.

There are likely some tweaks that can be done here but experience in other capacities has taught me to tread carefully with full text indexing logic, so this may have to wait until I have some time to consider a solution and the implications it would come with.

@dullage dullage added the bug Something isn't working label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants