Hi Mike

The problem here is that 1.4 no longer accepts spaces in keys and values
-instead, use underscores. Try:

{  "order" : "depth_first",  "uniqueness" : "relationship", "return_filter"
: { "language" : "javascript", "body" : "position.length() > 0 &&
position.lastRelationship().getProperty('name').toLowerCase().indexOf('test')!=-1"},
"max_depth" : 1 }


That is, "depth first" becomes "depth_first", "return filter" becomes
"return_filter", and "max depth" becomes "max_depth".

Kind regards

ian



On 12 July 2011 11:39, mike_t <t.pr...@gmx.net> wrote:

> Hi,
> I have some problems with the new version of neo4j.
>
> For my application i wrote a few unit test. These worked perfectly in neo4j
> 1.2 and 1.3 but not in 1.4.
>
> For example:
> I wanna have all relationships for a node with a special name. So I post
> following message to the url
> http://localhost:7474/db/data/node/1/traverse/relationship :
>
>
> {  "order" : "depth first",  "uniqueness" : "relationship", "return filter"
> : { "language" : "javascript", "body" : "position.length() > 0 &&
>
> position.lastRelationship().getProperty('name').toLowerCase().indexOf('test')!=-1"
> }, "max depth" : 1 }
>
> I think neo4j ignores the filter and returns all relationships.
>
>
> --
> View this message in context:
> http://neo4j-user-list.438527.n3.nabble.com/Problems-with-neo4j-1-4-rest-server-and-filter-tp3162043p3162043.html
> Sent from the Neo4J User List mailing list archive at Nabble.com.
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Director of Customer Success, Neo Technology
http://neotechnology.com
UK: +44 7974 144424
Skype: iansrobinson
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to