Trying out SDN 4 and finding that although certain queries work in the cypher browser, they don't seem to work in my repository. For example, when I enter the query:
MATCH (p:Publication) WHERE p.name =~'(?i)e.*' RETURN p;
in the cypher browser, it returns the expected results. However, with my repository defined as:
public interface PublicationRepo extends GraphRepository<Publication> {
Publication findByName(String name);
@Query(value="MATCH (p:Publication) WHERE p.name=~'(?i){0}.*' RETURN p")
Iterable<Publication> findByNameLikeIgnoreCase(String name);
}
it returns zero results.
The project setup is functioning properly as I can get data from other custom query methods, but the wildcard match isn't working
Additionally, I find it odd that the standard Spring Data JPA query methods also do not work (e.g. 'findByNameContaining', etc). Has anyone else run into this or am I doing something wrong. All the examples I've seen are very basic.