object CollationStrength
Collation support allows the specific configuration of how character cases are handled.
- Since
1.2
- Note
Requires MongoDB 3.4 or greater
- Alphabetic
- By Inheritance
- CollationStrength
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
val
IDENTICAL: CollationStrength
When all other levels are equal, the identical level is used as a tiebreaker.
When all other levels are equal, the identical level is used as a tiebreaker. The Unicode code point values of the NFD form of each string are compared at this level, just in case there is no difference at levels 1-4
-
val
PRIMARY: CollationStrength
Strongest level, denote difference between base characters
-
val
QUATERNARY: CollationStrength
When punctuation is ignored at level 1-3, an additional level can be used to distinguish words with and without punctuation.
-
val
SECONDARY: CollationStrength
Accents in characters are considered secondary differences
-
val
TERTIARY: CollationStrength
Upper and lower case differences in characters are distinguished at the tertiary level.
Upper and lower case differences in characters are distinguished at the tertiary level. The server default.
-
def
fromInt(collationStrength: Int): Try[CollationStrength]
Returns the CollationStrength from the string value.
Returns the CollationStrength from the string value.
- collationStrength
the int value.
- returns
the read concern
This is the documentation for the MongoDB Scala driver.
Driver structure
The mongodb scala driver.
To get started you need a MongoClient instance, either from a connection string or via a org.mongodb.scala.MongoClientSettings.
Notable packages include: