Currently in Criteria class we have the method
public Criteria orOperator(Criteria... criteria) {
BasicDBList bsonList = createCriteriaList(criteria);
return registerCriteriaChainElement(new Criteria("$or").is(bsonList));
}
This can be changed to
public Criteria orOperator(CriteriaDefinition... criteria) {
BasicDBList bsonList = createCriteriaList(criteria);
return registerCriteriaChainElement(new Criteria("$or").is(bsonList));
}
In this case it will be more flexible, and also it will be possible to have Criteria and TextCriteria mixed in $or operator.
Currently in
Criteriaclass we have the methodThis can be changed to
In this case it will be more flexible, and also it will be possible to have
CriteriaandTextCriteriamixed in $or operator.