[CXX-855] Deprecate "textSearchEnabled" server parameter Created: 01/Mar/16  Updated: 19/Oct/16  Resolved: 19/Oct/16

Status: Closed
Project: C++ Driver
Component/s: Testing
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Trivial - P5
Reporter: Rathi Gnanasekaran Assignee: J Rassi
Resolution: Won't Fix Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-287 Deprecate "textSearchEnabled" server ... Closed
Epic Link: Legacy C++ Driver MongoDB 3.4 Support

 Description   

The string textSearchEnabled appears only in a test, so there may not really be any work here, but I'm scheduling the necessary investigative work to legacy-1.2.0
.



 Comments   
Comment by J Rassi [ 19/Oct/16 ]

The only use of this server parameter is in the following test:

src/mongo/integration/standalone/dbclient_test.cpp-1462-TEST_F(DBClientTest, CreateComplexTextIndex) {
src/mongo/integration/standalone/dbclient_test.cpp-1463-    if (!serverGTE(c.get(), 2, 6)) {
src/mongo/integration/standalone/dbclient_test.cpp-1464-        BSONObj result;
src/mongo/integration/standalone/dbclient_test.cpp:1465:        c->runCommand("admin", BSON("setParameter" << 1 << "textSearchEnabled" << true), result);
src/mongo/integration/standalone/dbclient_test.cpp-1466-    }
src/mongo/integration/standalone/dbclient_test.cpp-1467-    c->createIndex(TEST_NS,
src/mongo/integration/standalone/dbclient_test.cpp-1468-                   IndexSpec()
src/mongo/integration/standalone/dbclient_test.cpp-1469-                       .addKey("aField", IndexSpec::kIndexTypeText)
src/mongo/integration/standalone/dbclient_test.cpp-1470-                       .addKey("bField", IndexSpec::kIndexTypeText)
src/mongo/integration/standalone/dbclient_test.cpp-1471-                       .textWeights(BSON("aField" << 100))
src/mongo/integration/standalone/dbclient_test.cpp-1472-                       .textDefaultLanguage("spanish")
src/mongo/integration/standalone/dbclient_test.cpp-1473-                       .textLanguageOverride("lang")
src/mongo/integration/standalone/dbclient_test.cpp-1474-                       .textIndexVersion(serverGTE(c.get(), 2, 6) ? 2 : 1));
src/mongo/integration/standalone/dbclient_test.cpp-1475-}

Its use in this test is appropriate, in order to enable text search on old servers.

Resolving as "Won't Fix".

Generated at Wed Feb 07 22:00:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.