Indexing Ne04j指数/约束,如薛定谔';猫的存在与否?

Indexing Ne04j指数/约束,如薛定谔';猫的存在与否?,indexing,neo4j,constraints,Indexing,Neo4j,Constraints,我的数据库好像坏了。约束失败,相应的索引标记为“失败”(见下文) 我原以为删除/重新创建约束或索引会重建它,但不会-当我尝试创建时,我被告知它已经存在,而当我删除时,我被告知它不存在 关于如何(a)避免陷入这种情况,以及(b)如何摆脱这种情况,有什么想法吗 Neo的任何人都想让我的DB看看(它不是很大-可能是50MB) 这听起来确实像一个bug。请将此问题提交至?谢谢您的报告。这是一个我们希望很快解决的错误。目前,您无法使用公共API修复它。很抱歉给您添麻烦,这肯定在我们的待办事项清单上 Ste

我的数据库好像坏了。约束失败,相应的索引标记为“失败”(见下文)

我原以为删除/重新创建约束或索引会重建它,但不会-当我尝试创建时,我被告知它已经存在,而当我删除时,我被告知它不存在

关于如何(a)避免陷入这种情况,以及(b)如何摆脱这种情况,有什么想法吗

Neo的任何人都想让我的DB看看(它不是很大-可能是50MB)


这听起来确实像一个bug。请将此问题提交至?

谢谢您的报告。这是一个我们希望很快解决的错误。目前,您无法使用公共API修复它。很抱歉给您添麻烦,这肯定在我们的待办事项清单上

Stefan

发布为,以及创建带有错误的DB的方法

后续里程碑或发布的时间表

neo4j-sh (?)$ schema
Indexes
  ON :Interest(uvid) FAILED (for uniqueness constraint) 
  ON :Interest(uiid) ONLINE (for uniqueness constraint) 
  ON :Offer(uoid)    ONLINE (for uniqueness constraint) 
  ON :Product(upid)  ONLINE (for uniqueness constraint) 
  ON :User(uuid)     ONLINE (for uniqueness constraint) 

Constraints
  ON (user:User) ASSERT user.uuid IS UNIQUE
  ON (product:Product) ASSERT product.upid IS UNIQUE
  ON (interest:Interest) ASSERT interest.uiid IS UNIQUE
  ON (offer:Offer) ASSERT offer.uoid IS UNIQUE

neo4j-sh (?)$ create constraint on (i:Interest) assert i.uvid is unique;
CypherExecutionException: Already constrained CONSTRAINT ON ( interest:Interest ) ASSERT interest.uvid IS UNIQUE.
neo4j-sh (?)$ drop constraint on (i:Interest) assert i.uvid is unique;  
CypherExecutionException: Unable to drop CONSTRAINT ON ( interest:Interest ) ASSERT interest.uvid IS UNIQUE:
No such constraint CONSTRAINT ON ( interest:Interest ) ASSERT interest.uvid IS UNIQUE.

neo4j-sh (?)$ drop index on :Interest(uvid);
CypherExecutionException: Unable to drop index on :Interest(uvid): Index belongs to constraint: :Interest(uvid)
neo4j-sh (?)$ create index on :Interest(uvid);
CypherExecutionException: Already constrained CONSTRAINT ON ( interest:Interest ) ASSERT interest.uvid IS UNIQUE.