I declared using SDN (spring data neo4j) a char property in java
@NodeEntity
public class Psite {
@GraphId
Long id;
@Indexed(unique = true)
public String identifier;
public char amino;
However I cannot perform any queries regarding this property on browser of neo4j server.
All three cases below give me 0 results.
MATCH (n:`Psite`) WHERE n.amino = "T" RETURN n LIMIT 25
MATCH (n:`Psite` {amino : 'T'}) RETURN n LIMIT 25
MATCH (n:`Psite` {amino : "T"}) RETURN n LIMIT 25
Can somebody help me please
As per comments above the best solution so far is:
MATCH (n:`Psite`) WHERE n.amino = 84 RETURN n LIMIT 25
instead of
MATCH (n:`Psite`) WHERE n.amino = "T" RETURN n LIMIT 25
ie replace "T" with its int ASCII value.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.