0

i'm new to neo4j, i'm reading the documentation and a sample, small app based on the node module (neo4j), but i don't see a way to get a node or nodes based on parameter/r.

something like:

var node = db.find({user: "WillSmith@iam.com", password: "5@^632g23^@#23"});

Can anyone explane it to me, or point me to a good resource explaining it :)

Aleksandrenko
  • 2,987
  • 6
  • 28
  • 34

1 Answers1

1

As far as i know, if you want to find nodes by property, you should search in index. This index you should create by yourself.

In this file i can see functions for working with indexes, unfortunately i've implemented this only in java, so i cant help with exact implementation. Hope, it helps =)

MightySeal
  • 2,293
  • 2
  • 17
  • 32
  • I was afraid that will happend :) i was hopping to not use indexis for this kind of search :/ – Aleksandrenko May 27 '13 at 08:30
  • 1
    Oh, i forgot about one option. You can try to execute cypher query. For example this query will return all nodes where type property's value is "ORGANIZATION" (case sensetive) and id property's value is 81 "START n=node(*) WHERE n.type="ORGANIZATION" AND n.id=81 RETURN n;" – MightySeal May 27 '13 at 08:43
  • mhm, this is also an viable option :) – Aleksandrenko May 27 '13 at 08:59