diff options
Diffstat (limited to 'jstests/core/fts_index.js')
-rw-r--r-- | jstests/core/fts_index.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/core/fts_index.js b/jstests/core/fts_index.js index ab1971816bd..2c61cd811b0 100644 --- a/jstests/core/fts_index.js +++ b/jstests/core/fts_index.js @@ -68,6 +68,8 @@ assert.eq(2, coll.getIndexes().length); // ensureIndex() becomes a no-op on an equivalent index spec. assert.writeOK(coll.ensureIndex({a: 1, b: "text", c: 1})); assert.eq(2, coll.getIndexes().length); +assert.writeOK(coll.ensureIndex({a: 1, b: "text", c: 1}, {background: true})); +assert.eq(2, coll.getIndexes().length); assert.writeOK(coll.ensureIndex({a: 1, _fts: "text", _ftsx: 1, c: 1}, {weights: {b: 1}})); assert.eq(2, coll.getIndexes().length); assert.writeOK(coll.ensureIndex({a: 1, b: "text", c: 1}, {default_language: "english"})); |