Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
12-31-2020 11:52 PM
I read somewhere that Neo4j latest version supports indexing on relationship properties.
Can someone guide me how can we create index on relationship property?
please share syntax of it and limitations
Solved! Go to Solution.
01-01-2021 01:45 AM
Neo4j currently support Full Text Index on Relationships types and properties.
db.index.fulltext.createRelationshipIndex
Please refer -
01-01-2021 01:45 AM
Neo4j currently support Full Text Index on Relationships types and properties.
db.index.fulltext.createRelationshipIndex
Please refer -
01-01-2021 01:49 AM
If i created index on relationship property, will queries use those indexes implicitly?
I have query like below where querying is done on relationship property.
optional match (u)-[r:Relationship]-() where r.id = 123
return u
How can this be optimised with full index search or any other way?
01-04-2021 04:02 AM
any answers on this?
01-04-2021 10:29 AM
Try experimenting with the query with and without the index.
Then, use the PROFILE or EXPLAIN commands to see if the index helps or hurts.
My guess is that it would help.
01-05-2021 03:39 AM
I need to query index relationship directly to use it. thankx
01-05-2021 04:22 AM
CALL db.index.fulltext.createRelationshipIndex("Rel_index_name", ["Relationship_Name"], ["Relationship_Property_Name"])
CALL db.index.fulltext.queryRelationships("Rel_index_name", "<search value>") YIELD relationship,score
06-20-2021 03:05 PM
Hi @rajeevprasanna ,
Neo4j 4.3 has now released with Index on Relationship properties.
Refer -> Indexes for search performance - Neo4j Cypher Manual
A simple demo -> Neo4j 4.3 Relationship Index – Dominic KUMAR's blog
All the sessions of the conference are now available online