-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DATAMONGO-1518 - Add support for collations.
We now support collations for collections, indexes, queries, findAndModify, delete, geo, bulk and aggregation operations in both the imperative and reactive implementations on template level. Collation collation = Collation.of("fr") .strength(ComparisonLevel.secondary() .includeCase()) .numericOrderingEnabled() .alternate(Alternate.shifted().punct()) .forwardDiacriticSort() .normalizationEnabled(); template.createCollection(Person.class, CollectionOptions.just(collation)); Query query = new Query(Criteria.where("firstName").is("Amél")).collation(collation); Original pull request: #459.
- Loading branch information
1 parent
b9d301e
commit 0b169d5
Showing
25 changed files
with
2,512 additions
and
275 deletions.
There are no files selected for viewing
754 changes: 754 additions & 0 deletions
754
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/Collation.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.