When I execute the below query in neo4j console, i get the correct result set. start n=node:search('username:*') return n.username;
I am using spring data neo4j in my java web app.
In the repository code, i defined query as:
@Query("START n=node:search({0}) RETURN n.name as name, n.username as username Parameter passed {0} = 'username:*'
There is no exception but the result set size is 0.
Can you please help me resolve the issue?
search
index-keyusername
? Can you check that with a plain lucene lookup? – Michael Hunger