cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

Cypher Indexes and Constraints: Check your understanding Question 2(index on an array)

apankraz
Node Link

Hi all, 

the following assessment in the Cypher Indexes and Constraints course seems to be wrong and might actually lead to a wrongful implementation and assumption of index usage. 

apankraz_0-1660658578666.png

As I understand non of the current available indexes would improve this query. Looking for a value in an indexed array property will in fact NOT use an index for lookup. 

Please correct me if I am wrong and show me how an Index could be used on an actual multivalued property to find a specific value like in the example. 

I would really, really like to be wrong about that 🙂 

1 ACCEPTED SOLUTION

@apankraz ,

This is a BAD question that needs to be rewritten. You are absolutely correct! Cypher does not (yet) support indexes on array elements. It will be a a future release.

Thank you for pointing this out. I will change the example.

Elaine

View solution in original post

1 REPLY 1

@apankraz ,

This is a BAD question that needs to be rewritten. You are absolutely correct! Cypher does not (yet) support indexes on array elements. It will be a a future release.

Thank you for pointing this out. I will change the example.

Elaine