Class ContainsAnyComparison

java.lang.Object
org.neo4j.ogm.cypher.function.ContainsAnyComparison
All Implemented Interfaces:
FilterFunction<Object>

public class ContainsAnyComparison extends Object implements FilterFunction<Object>
Filter to allow searching in collection properties. The difference with the IN filter is that the IN has a single parameter value, whereas ContainsAny value can be a collection and will match against properties containing at least one of these values. For example
  Filter f = new Filter("specialities", new ContainsAnyComparison(Arrays.asList("burger", "sushi")));
  Collection<Restaurant> all = session.loadAll(Restaurant.class, new Filters(f));
 
will match all restaurant having burger OR sushi as a speciality.
Author:
Gerrit Meier, Michael J. Simons