SDN neo4j 3.0发布索引策略

编程入门 行业动态 更新时间:2024-10-28 20:26:33
本文介绍了SDN neo4j 3.0发布索引策略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

自从RC1更新为RELEASE以来,我遇到了以下异常:

org.springframework.data.mapping.model.MappingException: No index name allowed on label based indexes

这意味着 @Index 现在将默认为标签",而不是简单索引".

如何为每个 @NodeEntity 指定标签? 通过此链接,我认为我应该使用 @Labels 但是这是官方吗?

考虑问题 DATAGRAPH-433 唯一索引会使用旧索引策略吗? spring数据neo4j文档没有提供任何线索.

解决方案

您可以从@Indexed批注中删除indexName.

或者为旧索引添加@Indexed(indexType = IndexType.SIMPLE).

您还必须手动为唯一索引设置该值.我有一篇针对SDN 3.0的博客文章.明天出版.

Since I updated from RC1 to RELEASE I get this exception:

org.springframework.data.mapping.model.MappingException: No index name allowed on label based indexes

which means @Index will now default to Label and not Simple indexing.

How do I specify the labels for each @NodeEntity ? From this link I think I should use @Labels but is this official ?

Considering issue DATAGRAPH-433 will unique indexes use the old index strategy?

The spring data neo4j documentation doesn't offer any clue.

解决方案

You can either just remove the indexName from your @Indexed annotations.

Or you add @Indexed(indexType = IndexType.SIMPLE) for the old indexes.

You have to manually set that for unique indexes too. I have a blog post in writing for SDN 3.0. To be published some time tomorrow.

更多推荐

SDN neo4j 3.0发布索引策略

本文发布于:2023-11-15 15:09:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1595543.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:索引   策略   SDN   neo4j

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!