In "Economical Indexing mode", the search function does not work if you enter keywords in a language other than English. #13985

Closed
opened 2026-02-21 19:14:55 -05:00 by yindo · 3 comments
Owner

Originally created by @heoyongun on GitHub (May 18, 2025).

Originally assigned to: @JohnJyong on GitHub.

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.4.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Registered keyword

  • 轻松学会
  • 축구
  • soccer

chinese
Image

korean
Image

english
Image

✔️ Expected Behavior

I hope that the entered keywords will be searched normally.

Actual Behavior

Search results

"soccer" is ok
Image

"축구" is fail

Image

"轻松学会" is fail

Image

Originally created by @heoyongun on GitHub (May 18, 2025). Originally assigned to: @JohnJyong on GitHub. ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.4.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Registered keyword - 轻松学会 - 축구 - soccer chinese ![Image](https://github.com/user-attachments/assets/79eca662-47e1-4034-8e11-bb5ada3e3764) korean ![Image](https://github.com/user-attachments/assets/9aa3a441-9bd7-47e0-a1a2-818a79522dce) english ![Image](https://github.com/user-attachments/assets/b7092f8d-6601-4912-a48f-c18662905865) ### ✔️ Expected Behavior I hope that the entered keywords will be searched normally. ### ❌ Actual Behavior Search results "soccer" is ok ![Image](https://github.com/user-attachments/assets/f4013da9-106d-440b-8945-fcc1de189982) "축구" is fail ![Image](https://github.com/user-attachments/assets/08d31a84-624b-4049-8b25-1b28240181e5) "轻松学会" is fail ![Image](https://github.com/user-attachments/assets/98cd71c5-ae53-4cf6-ba65-aa59ea0f93af)
yindo added the 🐞 bugstale labels 2026-02-21 19:14:55 -05:00
yindo closed this issue 2026-02-21 19:14:55 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (May 18, 2025):

Hello @heoyongun! I'm Dosu, a friendly bot here to help you with bugs, answer your questions, and assist you in becoming a contributor. I'm ready to dive into your issue while we wait for a human maintainer. Let's tackle this together!

The issue you're experiencing with the Economical Indexing mode in Dify, where non-English keywords are not returning search results, might be related to limitations in language support for this specific indexing mode. Economical Indexing uses an Inverted Index, which is optimized for keyword retrieval but may not handle non-English languages effectively due to differences in language structure and encoding [1][2][3].

To address this, you might consider switching to a different indexing mode that supports multilingual search more robustly, such as Hybrid Search, which combines full-text and vector search capabilities. This mode allows for cross-language semantic transformations and can be customized with settings like TopK and Score Threshold to improve search accuracy across different languages [4][5][6].

If switching modes is not feasible, you may need to check if there are any specific configurations or updates available for your version (1.4.0) that enhance language support in Economical Indexing.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (May 18, 2025): <!-- Greeting --> Hello @heoyongun! I'm [Dosu](https://dosu.dev), a friendly bot here to help you with bugs, answer your questions, and assist you in becoming a contributor. I'm ready to dive into your issue while we wait for a human maintainer. Let's tackle this together! <!-- Answer --> The issue you're experiencing with the Economical Indexing mode in Dify, where non-English keywords are not returning search results, might be related to limitations in language support for this specific indexing mode. Economical Indexing uses an Inverted Index, which is optimized for keyword retrieval but may not handle non-English languages effectively due to differences in language structure and encoding <sup>[[1]](https://github.com/crazywoola/dify-docs-mintlify/blob/main/en/guides/knowledge-base/knowledge-base-creation/upload-documents.mdx)</sup><sup>[[2]](https://github.com/crazywoola/dify-docs-mintlify/blob/main/zh-hans/guides/knowledge-base/create-knowledge-and-upload-documents/setting-indexing-methods.mdx)</sup><sup>[[3]](https://github.com/crazywoola/dify-docs-mintlify/blob/main/en/guides/knowledge-base/create-knowledge-and-upload-documents/setting-indexing-methods.mdx)</sup>. To address this, you might consider switching to a different indexing mode that supports multilingual search more robustly, such as Hybrid Search, which combines full-text and vector search capabilities. This mode allows for cross-language semantic transformations and can be customized with settings like TopK and Score Threshold to improve search accuracy across different languages <sup>[[4]](https://github.com/langgenius/dify/blob/main/api/core/indexing_runner.py)</sup><sup>[[5]](https://github.com/crazywoola/dify-docs-mintlify/blob/main/ja-jp/guides/knowledge-base/create-knowledge-and-upload-documents/setting-indexing-methods.mdx)</sup><sup>[[6]](https://github.com/crazywoola/dify-docs-mintlify/blob/main/ja-jp/guides/knowledge-base/knowledge-base-creation/upload-documents.mdx)</sup>. If switching modes is not feasible, you may need to check if there are any specific configurations or updates available for your version (1.4.0) that enhance language support in Economical Indexing. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/59ecb474-59e0-4180-bfd2-6213ac32b869?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/59ecb474-59e0-4180-bfd2-6213ac32b869?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/59ecb474-59e0-4180-bfd2-6213ac32b869?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/59ecb474-59e0-4180-bfd2-6213ac32b869?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/59ecb474-59e0-4180-bfd2-6213ac32b869?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/59ecb474-59e0-4180-bfd2-6213ac32b869?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/59ecb474-59e0-4180-bfd2-6213ac32b869?feedback_type=other)</sup>
Author
Owner

@heoyongun commented on GitHub (May 19, 2025):

@dosu

The issue you're experiencing with the Economical Indexing mode in Dify, where non-English keywords are not returning search results, might be related to limitations in language support for this specific indexing mode.

is based on incorrect information. It is not confirmed in the provided link.

@heoyongun commented on GitHub (May 19, 2025): @dosu > The issue you're experiencing with the Economical Indexing mode in Dify, where non-English keywords are not returning search results, might be related to limitations in language support for this specific indexing mode. is based on incorrect information. It is not confirmed in the provided link.
Author
Owner

@dosubot[bot] commented on GitHub (May 19, 2025):

I apologize for the confusion. The Economical Indexing mode in Dify uses an inverted index structure, which is optimized for quick keyword retrieval but does not inherently support cross-language semantic search. This mode is more suitable for scenarios where users know the exact terms they are searching for. However, specific limitations regarding non-English language support in Economical Indexing are not explicitly documented in the sources I have access to [1][2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (May 19, 2025): <!-- Answer --> I apologize for the confusion. The Economical Indexing mode in Dify uses an inverted index structure, which is optimized for quick keyword retrieval but does not inherently support cross-language semantic search. This mode is more suitable for scenarios where users know the exact terms they are searching for. However, specific limitations regarding non-English language support in Economical Indexing are not explicitly documented in the sources I have access to <sup>[[1]](https://github.com/crazywoola/dify-docs-mintlify/blob/main/ja-jp/guides/knowledge-base/create-knowledge-and-upload-documents/setting-indexing-methods.mdx)</sup><sup>[[2]](https://github.com/crazywoola/dify-docs-mintlify/blob/main/zh-hans/guides/knowledge-base/create-knowledge-and-upload-documents/setting-indexing-methods.mdx)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/31bbf2c5-0ee3-47a6-8fe8-5f019fb03334?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/31bbf2c5-0ee3-47a6-8fe8-5f019fb03334?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/31bbf2c5-0ee3-47a6-8fe8-5f019fb03334?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/31bbf2c5-0ee3-47a6-8fe8-5f019fb03334?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/31bbf2c5-0ee3-47a6-8fe8-5f019fb03334?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/31bbf2c5-0ee3-47a6-8fe8-5f019fb03334?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/31bbf2c5-0ee3-47a6-8fe8-5f019fb03334?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#13985