Negate a Query Constraint
If you have a query with one or more constraints, you can negate() any of those constraints:
// Query documents that do not contain "hippo"
final HstQuery query = HstQueryBuilder.create(scope)
.ofTypes(BaseDocument.class)
.limit(10)
.where(constraint(".").contains("hippo").negate())
.build();