Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-01-2021 10:48 PM
Hello,
How can I use the node similarity algorithm to determine how nodes are similar based on a property of a node? Would I, or can I, implement regular expressions here? Let's say I have a node label as BusinessLaw, and there is a property titled type. Can I use the node similarity algorithm to find the BusinessLaw nodes that are similar to other BusinessLaw nodes based on the same type property or a similar name for the type property?
I have a type property on BusinessLaw that says "BuildingProperty" and another type that says "CommercialProperty." How can I implement this algorithm to find nodes that are similar based on the property node value?
Thank you.
03-03-2021 01:48 PM
I think you're looking for the text similarity functions in APOC: Text Functions - APOC Documentation
Node Similarity, in GDS, is built to work on neighboring nodes (eg. how many neighbors do these nodes have in common) - not their properties - and our similarity functions that use properties (cosine, jaccard, etc) use numerical values, not strings.
All the sessions of the conference are now available online