Text Search Languages

MongoDB offers a full-text search solution, MongoDB Atlas Search, for data hosted on MongoDB Atlas. A legacy text search capability is available for users self-managing MongoDB deployments.

The text index and the $text operator may be used with the following languages, and accepts either the two-letter ISO 639-1 language code or the long form of the language name:

Language NameISO 639-1 (Two letter codes)
danishda
dutchnl
englishen
finnishfi
frenchfr
germande
hungarianhu
italianit
norwegiannb
portuguesept
romanianro
russianru
spanishes
swedishsv
turkishtr

If you specify a language value of "none", then the text search uses simple tokenization with no list of stop words and no stemming.

Tip提示
See also: 参阅:
←  Text Search in the Aggregation PipelineGeospatial Queries →