We have a property in our db that has gotten more important over time and we are searching on it a lot. We have been debating either making it a node label, or creating an index on the property. So if the structure were
a:ProgNode {KDM:p1, size:10,etc etc
Would we be better just creating an index on KDM or defining it like this
a:ProgNode:KDMVALUE {size:10, etc etc)
If the answer is define it as a label on Node, is there a simple cypher that can do it ? Thanks
I would suggest to have a look into the requirement and indexes in Neo4j.
OR
Several other documents available at Neo4j.
Inshort, Label Index to restrict the Search on given Label and is nothing to do with property value present in the Label. On the other hand when you create a Explicit property index then your search will look into the index to fulfill the search result.