Articles → MONGODB → Default Language Of Text Search Indexing In Mongodb

Default Language Of Text Search Indexing In Mongodb






Tokenization And Stemming









Are Tokenization And Stemming Different For Different Languages?






Picture showing the sample language sentence




Picture showing the tokenization of string





How To Set The Default Language?




db.collection.createIndex(
   {[field]: "text" },
   { default_language: "[language]" }
)


Picture showing setting the default language while creating the index



Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, May 14, 2024

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250