diff options
Diffstat (limited to 'jstests/core/fts5.js')
-rw-r--r-- | jstests/core/fts5.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/fts5.js b/jstests/core/fts5.js index 99cd6ce84bb..aa689a46ed9 100644 --- a/jstests/core/fts5.js +++ b/jstests/core/fts5.js @@ -12,7 +12,7 @@ t.drop(); t.save({_id: 1, x: [{a: "az"}, {a: "b"}, {a: "x"}], y: ["c", "d", "m"], z: 1}); t.save({_id: 2, x: [{a: "c"}, {a: "d"}, {a: "y"}], y: ["az", "b", "n"], z: 2}); -t.ensureIndex({y: "text", z: 1}, {weights: {"x.a": 10}}); +t.createIndex({y: "text", z: 1}, {weights: {"x.a": 10}}); assert.eq([1, 2], queryIDS(t, "az"), "A1"); assert.eq([2, 1], queryIDS(t, "d"), "A2"); |