Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
*Location*: https://docs.mongodb.org/manual/core/index-text/
*User-Agent*: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/45.0.2454.101 Chrome/45.0.2454.101 Safari/537.36
*Referrer*: https://www.google.com/
*Screen Resolution*: 1280 x 800
*repo*: docs
*source*: core/index-text
*Location*: https://docs.mongodb.org/manual/core/index-text/ *User-Agent*: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/45.0.2454.101 Chrome/45.0.2454.101 Safari/537.36 *Referrer*: https://www.google.com/ *Screen Resolution*: 1280 x 800 *repo*: docs *source*: core/index-text
Description
Could you explain how to use an index? You mentioned the $text param but I have no idear how a code exaple should look like.
Simple Question: How can I use an Index to search text that is spread across multiple fileds of a collection?