Git Product home page Git Product logo

Comments (8)

duterscmy avatar duterscmy commented on August 24, 2024

我是用的“CREATE INDEX ON:Entity(name)”这条语句,参考的https://www.jianshu.com/p/91f3e214b47e这个博客,很大的数据也很快就能建完

from ccks2019-ckbqa-4th-codes.

1234560o avatar 1234560o commented on August 24, 2024

我这个也试了,也是一样的报错信息。我使用CREATE INDEX ON:Entity(id)建立索引能成功,通过id搜索速度明显快很大了,但是name索引建立不成功
Indexes
ON :Entity(id) ONLINE
ON :Entity(name) FAILED

from ccks2019-ckbqa-4th-codes.

443874255 avatar 443874255 commented on August 24, 2024

我这个也试了,也是一样的报错信息。我使用CREATE INDEX ON:Entity(id)建立索引能成功,通过id搜索速度明显快很大了,但是name索引建立不成功
Indexes
ON :Entity(id) ONLINE
ON :Entity(name) FAILED

你好 请问你解决这个问题了吗

from ccks2019-ckbqa-4th-codes.

1234560o avatar 1234560o commented on August 24, 2024

@443874255 我后来查了下日志,我的原因是三元组里面有些实体太长了,neo4j里面的建立索引对长度有限制,去掉太长了的就成功了。

from ccks2019-ckbqa-4th-codes.

443874255 avatar 443874255 commented on August 24, 2024

@443874255 我后来查了下日志,我的原因是三元组里面有些实体太长了,neo4j里面的建立索引对长度有限制,去掉太长了的就成功了。

嗯嗯 我也刚在google上找到了类似的问题 谢谢啦

from ccks2019-ckbqa-4th-codes.

FreedomXD avatar FreedomXD commented on August 24, 2024

@443874255 我后来查了下日志,我的原因是三元组里面有些实体太长了,neo4j里面的建立索引对长度有限制,去掉太长了的就成功了。

你好呀,我也进行到这一步了,通过
https://neo4j.com/docs/operations-manual/current/performance/index-configuration/#index-configuration-limitations
这里的文档,写的是4k,但4k删掉也还是报错,甚至我用下面语句
MATCH (n:Entity) WHERE size(n.name) > 3072 DETACH DELETE n
删掉了大于3k的节点,但还是导入失败,想知道这里的索引限制到底是多少呢?谢谢!

from ccks2019-ckbqa-4th-codes.

1234560o avatar 1234560o commented on August 24, 2024

@FreedomXD 我也不知道长度限制多少,可能不同版本长度限制不一样,我是将实体长度超过100的都去掉了,因为我觉得太长了算不上一个实体,且数量也很少

from ccks2019-ckbqa-4th-codes.

FreedomXD avatar FreedomXD commented on August 24, 2024

@FreedomXD 我也不知道长度限制多少,可能不同版本长度限制不一样,我是将实体长度超过100的都去掉了,因为我觉得太长了算不上一个实体,且数量也很少

我最后改成1000,然后存进去了,谢谢

from ccks2019-ckbqa-4th-codes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.