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

[Question] 中文无法查询 #646

Closed
1 task done
liskymice opened this issue Dec 9, 2024 · 4 comments
Closed
1 task done

[Question] 中文无法查询 #646

liskymice opened this issue Dec 9, 2024 · 4 comments
Labels
hubble hugegraph-hubble question Further information is requested

Comments

@liskymice
Copy link

Problem Type (问题类型)

None

Before submit

  • 我已经确认现有的 IssuesFAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)

Environment (环境信息)

  • Server Version: 1.2.0 (Apache Release Version)
  • Backend: HBase
  • OS: xx CPUs, xx G RAM, Ubuntu 2x.x / CentOS 7.x
  • Data Size: 3亿 vertices, 1亿 edges

Your Question (问题描述)

我使用的hugegraph版本是1.2.0,我在hubble界面中提交的所有的带有中文的检索语句均无法查询到结果,其他均可正常查询,我保证我导入数据时使用的是UTF-8的编码格式,请问这是什么原因

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

No response

This comment was marked as duplicate.

@dosubot dosubot bot added the question Further information is requested label Dec 9, 2024
@imbajin imbajin transferred this issue from apache/incubator-hugegraph Dec 9, 2024
@dosubot dosubot bot added the hubble hugegraph-hubble label Dec 9, 2024
Copy link

dosubot bot commented Dec 9, 2024

在 HugeGraph 1.2.0 版本中,查询包含中文字符时遇到问题可能与字符编码或索引配置有关。以下是一些可能的解决方案:

  1. 确认字符编码:确保在数据导入时确实使用了 UTF-8 编码。虽然您已经确认使用了 UTF-8,但可以再次检查数据文件和导入配置,以确保没有编码错误。

  2. 检查索引配置:确保为包含中文字符的属性创建了适当的索引。HugeGraph 需要为查询的属性创建索引,以提高查询效率和准确性。请检查您的 Schema 配置,确保为相关的 VertexLabel 和 EdgeLabel 创建了文本索引(Text Index)。

  3. 日志检查:查看 HugeGraph 和 HBase 的日志文件,寻找任何与字符编码或查询相关的错误信息。这些日志可能会提供有关问题的更多线索。

  4. HBase 配置:确认 HBase 的配置支持 UTF-8 编码,尤其是在存储和检索数据时。

如果以上方法未能解决问题,建议逐步简化查询条件,排除其他可能的干扰因素,或者尝试在不同的环境中重现问题,以进一步诊断问题的根源。

To continue talking to Dosu, mention @dosu.


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

@imbajin
Copy link
Member

imbajin commented Dec 9, 2024

@liskymice @dosu

refer:

  1. [Bug] Hubble 创建属性节点中文,数据库乱码 #621
  2. fix(hubble): encode/decode Chinese error after building package #627

Try the latest hubble code/image

Copy link

dosubot bot commented Dec 9, 2024

I didn't find any similar threads.

To continue talking to Dosu, mention @dosu.


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hubble hugegraph-hubble question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants