March 2019
Intermediate to advanced
394 pages
11h 4m
English
Text indexes are special indexes on string value fields, used to support text searches. This book is based on version 3 of the text index functionality, available since version 3.2.
A text index can be specified similarly to a regular index, by replacing the index sort order (-1, 1) with the word text, as follows:
> db.books.createIndex({"name": "text"})
Since we only have one text index per collection, we need to choose the fields wisely. Reconstructing ...
Read now
Unlock full access