for (int i = 0; i < count; i++) {
User user = createUser();
user.getBaseInfo().setAge(i);
userRepository2.save(user);
}
Searchable search = Searchable.newSearchable();
SearchFilter condition11 = SearchFilterHelper.newCondition("baseInfo.age", SearchOperator.eq, 3);
SearchFilter condition12 = SearchFilterHelper.newCondition("baseInfo.age", SearchOperator.lte, 4);
SearchFilter condition13 = SearchFilterHelper.newCondition("baseInfo.age", SearchOperator.gte, 4);
SearchFilter or11 = SearchFilterHelper.or(condition12, condition13);
SearchFilter or1 = SearchFilterHelper.or(condition11, or11);
SearchFilter condition21 = SearchFilterHelper.newCondition("baseInfo.age", SearchOperator.eq, 3);
SearchFilter condition22 = SearchFilterHelper.newCondition("baseInfo.age", SearchOperator.eq, 4);
SearchFilter or2 = SearchFilterHelper.or(condition21, condition22);
//( =3 or (>=4 and <=4)) and (=3 or =4)
search.and(or1, or2);
assertEquals(2, userRepository2.count(search));
}