Does label mechanism provide auto-indexing features when using neo4j-java API?

冷暖自知 提交于 2019-12-25 03:05:10

问题


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.

  1. 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)?

  2. 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).

  3. 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?


回答1:


I don't work for Neo4j but I'll answer anyway.

  1. All label indexing is automatic. Once you've created the index it maintains itself, possibly with minimal delay.
  2. The manual for the last stable release can always be found here. The chapter on indexing for the embedded Java API is here.
  3. 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']



来源:https://stackoverflow.com/questions/22049121/does-label-mechanism-provide-auto-indexing-features-when-using-neo4j-java-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!