The nodes in my graph have properties named in namespace style,
something like Namespace:Parent.Property. All these properties are
indexed using the automatic node indexing feature of Neo4j. I want to
be able to issue a be able to issue a lucene query on the index in the
start clause of a cypher query, something like START n =
node:node_auto_index('key:value') RETURN n;
The problem here is that my key contains the colon special character,
how would I distinguish the colon from within the key name from the
one that separates the key from the value in the lucene query ?
For example, I want to be able to query a field name called
Neo:Graph.Writer for having the value "William Shakespeare". It should
have been something like:
START n = node:node_auto_index('Neo:Graph.Writer:\"William Shakespeare
\"') RETURN n;
The lucene documentation says the special characters are to be escaped
using the backslash (\), unfortunately escaping the colon from
Neo:Graph using the backslash throws an exception "Unfortunately, you
have run into a syntax error that we don't have a nice message for."
Thanks for the help.
On May 29, 11:16 pm, Michael Hunger <
michael.hun...@neotechnology.com>
wrote:
> can you post your sample query?
>
> Michael
>
> Am 30.05.2012 um 03:32 schrieb Razvan Tanase:
>
>
>
>
>
>
>
> > Any ideas on how to write a lucene query where the key contains
> > special characters? How can we distinguish thecolonin the key from
> > thecolonthat separates the index key from the value?