summaryrefslogtreecommitdiff
path: root/jstests/core/fts_phrase.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/fts_phrase.js')
-rw-r--r--jstests/core/fts_phrase.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/fts_phrase.js b/jstests/core/fts_phrase.js
index eae0a1c268d..dfe9d3692af 100644
--- a/jstests/core/fts_phrase.js
+++ b/jstests/core/fts_phrase.js
@@ -11,7 +11,7 @@ t.save({_id: 1, title: "my blog post", text: "i am writing a blog. yay"});
t.save({_id: 2, title: "my 2nd post", text: "this is a new blog i am typing. yay"});
t.save({_id: 3, title: "knives are Fun", text: "this is a new blog i am writing. yay"});
-t.ensureIndex({"title": "text", text: "text"}, {weights: {title: 10}});
+t.createIndex({"title": "text", text: "text"}, {weights: {title: 10}});
res = t.find({"$text": {"$search": "blog write"}}, {score: {"$meta": "textScore"}}).sort({
score: {"$meta": "textScore"}