简体   繁体   中英

How to index relationship properties in Neo4J in an easy way

I want to index the existing relationship properties in Neo4J (2.0.1) and also to set up automatic indexing for the ones that will appear in the future.

I found out that it's possible to do that in Neo4J documentation through the legacy auto-indexing as well as the examples of some Java code .

However, as I'm neither an expert in Java, nor want to use "legacy" functionality, I wanted to ask you if there is an easy way to index relationships on a specific property using Cypher command or any other way (rest API?) that wouldn't involve me having to write some Java program and run it (I don't know how to do that).

Thank you for your help!

My original answer was wrong. Editing so that it doesn't generate confusion to others looking for a solution.

Please refer to Relationship Labels and Index in Neo4J a for correct answer, as @deemeetree pointed out in the comments.

You can't do indexing on relationship. Indexing is done only on nodes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM