Re: [Neo4j] Cypher queries with regular expression with indexing

184 views
Skip to first unread message

Peter Neubauer

unread,
Oct 7, 2012, 11:22:10 AM10/7/12
to ne...@googlegroups.com
Have you tried

"start a=node:my_index('name:*Brommenhof') return a"

which is an index query that gets passed to the underlying index directly?

?

Cheers,

/peter neubauer

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

Neo4j 1.8 GA - http://www.dzone.com/links/neo4j_18_release_fluent_graph_literacy.html


On Sun, Oct 7, 2012 at 4:03 PM, pt <patt...@gmail.com> wrote:
> Hi,
>
> I tried to execute the cypher from python and found the following issues, I
> would be appreciated very much for any answer.
>
> from the console:
>
> "start a=node:my_index(name="Zum Brommenhof") return a" --> this work on
> console but not with neo4j-python-embedded. it seems the double quote is
> detected and the interpreter return syntax error.
>
>
> next,
>
> "start a=node:my_index(name="*Brommenhof") return a" --> this query from
> console return not found (0 row)
> Cypher doesn't able to handle regular expression in indexing?
>
>
> Thank you!
> pattreeya.
>
>
>
>
> --
>
>

Michael Hunger

unread,
Oct 7, 2012, 2:42:17 PM10/7/12
to ne...@googlegroups.com
Can't you escape them with a backslash? Or use single quotes in cypher

Sent from mobile device

pt

unread,
Oct 7, 2012, 4:46:53 PM10/7/12
to ne...@googlegroups.com
Thank you very much! It works : ) 
Reply all
Reply to author
Forward
0 new messages