diff options
Diffstat (limited to 'jstests/core/stages_text.js')
-rw-r--r-- | jstests/core/stages_text.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/jstests/core/stages_text.js b/jstests/core/stages_text.js index 6598d135b9f..d38ef316663 100644 --- a/jstests/core/stages_text.js +++ b/jstests/core/stages_text.js @@ -9,13 +9,11 @@ t.save({x: "az b x"}); t.ensureIndex({x: "text"}); // We expect to retrieve 'b' -res = db.runCommand({stageDebug: {collection: collname, - plan: {text: {args: {search: "b"}}}}}); +res = db.runCommand({stageDebug: {collection: collname, plan: {text: {args: {search: "b"}}}}}); assert.eq(res.ok, 1); assert.eq(res.results.length, 1); // I have not been indexed yet. -res = db.runCommand({stageDebug: {collection: collname, - plan: {text: {args: {search: "hari"}}}}}); +res = db.runCommand({stageDebug: {collection: collname, plan: {text: {args: {search: "hari"}}}}}); assert.eq(res.ok, 1); assert.eq(res.results.length, 0); |