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

Speical Symbols #639

Open
HuangYiming0608 opened this issue Jun 22, 2024 · 3 comments
Open

Speical Symbols #639

HuangYiming0608 opened this issue Jun 22, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@HuangYiming0608
Copy link

In my website(In Chinese), I use some special symbols, such as C++. If my search key word is C++, there is nothing! But If I use C, I can find this page.`

Is it because of special symbols?


I use wrapper library astro-pagefind. The number of issue is #85

@bglw
Copy link
Contributor

bglw commented Jun 26, 2024

Hey @HuangYiming0608 👋

Currently Pagefind doesn't index or search special characters — but you should still be seeing a result. When indexing, C++ will be normalized to c. When searching, the intention is that searching for C++ should actually search for c, so the results should still line up.

It's possible that the search reformatting isn't being applied when searching in some languages, I'll look into that.

(It's also worth considering supporting more symbol searches in Pagefind in the future, but that needs more thought)

@bglw bglw added the bug Something isn't working label Jun 26, 2024
@HuangYiming0608
Copy link
Author

HuangYiming0608 commented Jun 26, 2024

Hey @HuangYiming0608 👋

Currently Pagefind doesn't index or search special characters — but you should still be seeing a result. When indexing, C++ will be normalized to c. When searching, the intention is that searching for C++ should actually search for c, so the results should still line up.

It's possible that the search reformatting isn't being applied when searching in some languages, I'll look into that.

(It's also worth considering supporting more symbol searches in Pagefind in the future, but that needs more thought)

So if all the characters of the key word are sperical charaters, such as ~, will it no result?

@bglw
Copy link
Contributor

bglw commented Jun 26, 2024

In the current implementation, correct. Searching for a ~ alone wouldn't return results.

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