summaryrefslogtreecommitdiff
path: root/jstests/fts_partition_no_multikey.js
blob: eabe92a26087209cc532e3814b6e6f489d694d4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

load( "jstests/libs/fts.js" );

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

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

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

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

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

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