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

Reply via email to