We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb5c195 commit 28c4d63Copy full SHA for 28c4d63
source/code-snippets/indexes/text.js
@@ -17,8 +17,10 @@ async function run() {
17
// Create a text index on the "title" and "body" fields
18
const result = await myColl.createIndex(
19
{ title: "text", body: "text" },
20
- { default_language: "english" },
21
- { weights: { body: 10, title: 3 } }
+ {
+ default_language: "english",
22
+ weights: { body: 10, title: 3 }
23
+ }
24
);
25
// end-idx
26
console.log(`Index created: ${result}`);
0 commit comments