summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/external_sort_text_agg.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthroughWithMongod/external_sort_text_agg.js')
-rw-r--r--jstests/noPassthroughWithMongod/external_sort_text_agg.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthroughWithMongod/external_sort_text_agg.js b/jstests/noPassthroughWithMongod/external_sort_text_agg.js
index 583aff8601b..089432b88d0 100644
--- a/jstests/noPassthroughWithMongod/external_sort_text_agg.js
+++ b/jstests/noPassthroughWithMongod/external_sort_text_agg.js
@@ -1,7 +1,7 @@
// Ensure text search metadata is not lost in an external sort
var t = db.external_sort_text_agg;
t.drop();
-t.createIndex({text: "text"});
+t.ensureIndex({text: "text"});
for (i = 0; i < 100; i++) {
t.insert({_id: i, text: Array(210000).join("asdf ")});
// string over 1MB to hit the 100MB threshold for external sort