I can get a predicate like
ANY alpha.prop LIKE $SEARCH_TERM
to work where alpha is a to-many relationship, but how do I get
ANY alpha.beta.prop LIKE $SEARCH_TERM
to work where alpha is a to-many relationship and beta is a to-many relationship on alpha, this throws the exception ‘multiple to-many keys not allowed here‘.
Ok the way to do this is to do the search on bottom child element instead so the query string becomes
and then enumerate through the result and grab the parent of the parent and stick them in a set to remove duplicates, like