1.

The default weight is ____ for the indexed fields.(a) 1(b) 2(c) 3(d) 4The question was asked in unit test.My question is based upon Text Search in division Index/Indexing Concepts of MongoDB

Answer»

The correct option is (a) 1

Easiest EXPLANATION: To ADJUST the WEIGHTS for the indexed fields, include the weights option in the db.collection.createIndex() METHOD.



Discussion

No Comment Found

Related InterviewSolutions