问题描述
首先,我敢打赌,文档中某个地方对此问题有答案,但是由于手册:标签和索引"链接这里给我404错误,无论如何我都会问你.
First of all, I bet that there is an answer on this question somewhere in docs, but since 'Manual: Labels and Indexes' link here gives me 404 error, I'm going to ask you anyway.
-
是否可以在某些标签上创建索引并将其指定为自动索引(就像我当前正在使用的旧索引一样,但用于标签)?
Is it possible to create an index on some label and specify it as an automatic one (just like legacy indexes I'm currently using, but for labels)?
如果neo4j团队的某人正在阅读此文章,请告诉我我是否在正确的位置查找文档,因为我无法在标签和索引上找到更多或更少的信息(除了迈克尔·汉格(Michael Hunger)博客中的几篇文章以及可能的一些演示文稿之外,显然还不够).
If someone from neo4j team is reading this post, please let me know if I'm looking for the documentation in the right place, 'cause I can't find anything more or less informative on labels and indexes (except a couple of posts in Michael Hunger's blog and, maybe, some presentations, what is obviously not enough).
这是一个技术性更强的代码:是否可以通过正则表达式在索引中找到一个项目?假设我有一个属性为'n' -> '/a/b/c'
的节点,另一个节点为'n' -> '/a/*/c
.我可以以某种方式匹配它们吗?
This is a more technical one: is it possible to find an item in the index by the regex? Suppose I have node with property 'n' -> '/a/b/c'
, and another node 'n' -> '/a/*/c
. Can I somehow match them?
推荐答案
我不为Neo4j工作,但我还是会回答.
I don't work for Neo4j but I'll answer anyway.
- 所有标签索引都是自动的.创建索引后,它会自行维护,而延迟可能很小.
- 始终可以在此处上找到最新稳定版的手册. 此处.
-
您尚不能将正则表达式与标签索引一起使用.据说与数组查找的索引支持一起在议事日程上,即Cypher将会是什么
- All label indexing is automatic. Once you've created the index it maintains itself, possibly with minimal delay.
- The manual for the last stable release can always be found here. The chapter on indexing for the embedded Java API is here.
You cannot use regexp with label indices yet. It's said to be on the agenda, along with index support for array lookups, i.e. what in Cypher would be
MATCH (a:MyLabel) WHERE a.value IN ['val1', 'val2']
这篇关于使用neo4j-java API时,标签机制是否提供自动索引功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!