[Neo] Managing nodes with same values for a property

mario.alemi at gmail.com mario.alemi at gmail.com
Wed Feb 24 09:54:03 CET 2010

Hi Sumanth,

Exactly like you would do for a real person, I'd say. Either you accept to
get back two nodes (in my case I often want all the nodes with
getProperty("type", "Customer") ), and then you iterate over them etc, or
you set up a simple Id as explained in

Hope it will help.

Mario Alemi

On Wed, Feb 24, 2010 at 6:40 AM, Sumanth Thikka <sumanth at truesparrow.com>wrote:

> Hi,
> A clarification regarding the properties of nodes.
> If I am not wrong two nodes can have same value for similar property.
> For example:
>         node1.setProperty("name", "Sumanth"),
>         node2.setProperty("name", "Sumanth") is valid.
>  node1 and node2 have same value "Sumanth" for the property "name".
> My doubt is, how do we distinguish these nodes? Do we need to check if
> there
> already exists any node with the similar property value in Lucene(if one
> uses lucene) before creating?
> Thank you,
> T.Sumanth
> _______________________________________________
> Neo mailing list
> User at lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user

More information about the User mailing list