Re: [Neo4j] CQL find by name

2011-12-01 Thread Krzysztof RaczyƄski
In my opinion, the current syntax reminds me of SQL, which is a good
thing. All the newbies like me can easily wrap their head around the
concepts, without much problem. Since you can't do an actual
assignment in Cypher (please correct me if i am wrong), an equal sign
clearly means comparison only.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] CQL find by name

2011-12-01 Thread Michael Hunger
Actually they map to two different calls of the neo4j core API.

The first one is a exact lookup for the value.

The second one takes an arbitrary query string and executes it against an 
index, so it is much more powerful.
(But also dependend on the index-provider)

Main difference is that the query string has to be parsed by the index.
And around parameters, first one is better if you want to have the lookup 
variable fixed.

start node=node:index(key={param})
start node=node:index({param})

Cheers

Michael

Am 01.12.2011 um 03:56 schrieb yobi:

 I have seen both this:
 
 START root=node:node_auto_index(name = 'FileRoot')
 
 and this used:
 
 START root=node:node_auto_index('name: FileRoot')
 
 Isn't the second one more appropriate since the first one could be mixed up
 with an assignment and the second one looks more like a key:value pair. More
 simple to get and you don't have to change syntax style when you are using
 *.
 
 START root=node:node_auto_index('name: FileRoot*')
 
 Correct me if I am missing something.
 
 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/CQL-find-by-name-tp3550446p3550446.html
 Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user