summaryrefslogtreecommitdiff
path: root/jstests/core/fts_partition_no_multikey.js
blob: 4c249522c30ca805ed8492de26b1ebe32fba94db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

t = db.fts_partition_no_multikey;
t.drop();

t.ensureIndex({x: 1, y: "text"});

assert.writeOK(t.insert({x: 5, y: "this is fun"}));

assert.writeError(t.insert({x: [], y: "this is fun"}));

assert.writeError(t.insert({x: [1], y: "this is fun"}));

assert.writeError(t.insert({x: [1, 2], y: "this is fun"}));