neo4jclient - Searching in Neo4j -


my web application has users , coworker relationship. want search users has coworker relationship specific user. used query:

var query = _client                 .cypher                 .start(new                            {                                //user = node.byindexlookup(indexhelper.user_index, "email", email)                             }                 ).match(string.format("user-[:{0}]-(coworkers)", coworker.typekey))                                 .where((user coworkers) => coworkers.email.contains(term))                 .return<node<user>>("coworkers"); 

but throws invalid parameter at

where((user coworkers) => coworkers.email.contains(term)).

how can replace condition search coworker term? reading.

cypher doesn't support contains operator this, hence why exception says there no .net equivalent.

the nearest use regex:

where coworkers.email =~ ".*something.*" 

but horribly inefficient because run regex across every node.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -