You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using testImplementation group: 'de.bwaldvogel', name: 'mongo-java-server', version: '1.44.0' with Springboot 3.1.1. However, I found the lib didn't support collation feature well. Hence, below query with ignoreCase won't work:
private final Collation collation = Collation.of("en").strength(Collation.ComparisonLevel.secondary());
public Credential findOneByUserNameIgnoreCase(String userName) {
return mongoTemplate
.findOne(new Query(Criteria.where(CredentialRepository.USER_NAME_FIELD).is(userName)).collation(collation),
Credential.class);
}
Any ideas?
Thank in advance
The text was updated successfully, but these errors were encountered:
Hi there,
I'm using
testImplementation group: 'de.bwaldvogel', name: 'mongo-java-server', version: '1.44.0'
with Springboot 3.1.1. However, I found the lib didn't support collation feature well. Hence, below query with ignoreCase won't work:Any ideas?
Thank in advance
The text was updated successfully, but these errors were encountered: