1.

Point out the wrong statement.(a) In order to drop a text index, use the index name(b) The default language associated with the indexed data determines the rules to parse word roots and ignore stop words(c) To allow for text search on all fields with string content, use the wildcard specifier ($$$) to index all fields that contain string content(d) None of the mentionedThe question was posed to me in exam.The question is from Text Search in section Index/Indexing Concepts of MongoDB

Answer»

Correct option is (c) To ALLOW for text search on all fields with string content, use the WILDCARD specifier ($$$) to index all fields that contain string content

Explanation: In the aggregation PIPELINE, text search is available via the use of the $text query OPERATOR in the $match stage.



Discussion

No Comment Found

Related InterviewSolutions