I think you run in the numeric indexing issue, that is not usable with cypher. Due to issues with the lucene parser.
If you use
@Indexed(indexName = "adId", unique = true, numeric=false)
private Long id;
it should work.
Or you have to pass in ValueContext.numeric(id)
instead of Long id
as the parameter of the method.
For derived finders we handle that automatically, but for user defined queries we cannot know what you actually pass in.