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

Inconsistent Search Results for Chinese Characters in Anytype #1798

Open
3 tasks done
glwhappen opened this issue Nov 7, 2024 · 1 comment
Open
3 tasks done

Inconsistent Search Results for Chinese Characters in Anytype #1798

glwhappen opened this issue Nov 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@glwhappen
Copy link

Have you read a contributing guide?

  • I have read CONTRIBUTING.md
  • I have searched the existing issues and didn't find any that were similar
  • I have considered creating a pull request with fixes instead of a bug report and want to proceed

Current Behavior

When using Anytype with Chinese content, I’ve encountered issues with the search functionality. Specifically, searching for single Chinese characters does not return relevant results, while searching with combined Chinese phrases works as expected. This inconsistency makes it difficult to locate content accurately in Chinese.
image
image

Expected Behavior

Expected Result: Searching for a single Chinese character (e.g., "颠覆") should return any objects or bookmarks containing that character, just like searching with the full phrase.
Actual Result: When searching for a single Chinese character, no results are displayed. However, when using a combination of characters (like "颠覆传统"), the correct results are shown.

Steps To Reproduce

  1. Create a new object or bookmark in Anytype with Chinese characters (e.g., "颠覆传统").
  2. Try to search for a single character from the phrase (e.g., "颠覆").
  3. Observe that the search does not yield the expected result.
  4. Then search with the full phrase (e.g., "颠覆传统") and notice that it appears correctly.

Environment

- OS:Windows 10
- Version:0.43.4

Anything else?

No response

@glwhappen glwhappen added the bug Something isn't working label Nov 7, 2024
@ra3orblade ra3orblade transferred this issue from anyproto/anytype-ts Nov 7, 2024
@KohHub
Copy link

KohHub commented Nov 11, 2024

I am also experiencing the same issue in the Japanese environment, where partial search in a continuous string of text does not seem to work. This problem likely occurs in English as well.

For example, in the text "The Segmented Text," the word "Segmented" can be found, but in "TheUnsegmentedText," the word "Unsegmented" cannot be located.

This issue can be critical for languages that do not use word segmentation.

Thanks for reading!

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