From e37a47d6939c77518d7956e000b03c0d3d59588a Mon Sep 17 00:00:00 2001 From: shubham oulkar <91728992+ShubhamOulkar@users.noreply.github.com> Date: Sat, 14 Sep 2024 13:12:07 +0000 Subject: [PATCH] DOCS- pass default_language as an option to the createIndex method --- .../create-text-index-multiple-languages.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/indexes/index-types/index-text/specify-language-text-index/create-text-index-multiple-languages.txt b/source/core/indexes/index-types/index-text/specify-language-text-index/create-text-index-multiple-languages.txt index df2e8b90391..adca3a0b5ed 100644 --- a/source/core/indexes/index-types/index-text/specify-language-text-index/create-text-index-multiple-languages.txt +++ b/source/core/indexes/index-types/index-text/specify-language-text-index/create-text-index-multiple-languages.txt @@ -93,7 +93,7 @@ The following operation creates a text index on the ``original`` and .. code-block:: javascript - db.quotes.createIndex({ original: "text", "translation.quote": "text", "default_language" : "fr" }) + db.quotes.createIndex({ original: "text", "translation.quote": "text"}, {"default_language" : "fr" }) .. note::