title: text index required for $text query
body: <p>I have an error "text index required for $text query". But as I see i made all correctly.</p>
  
  <pre><code>const JobSchema = mongoose.Schema({
    jobTitle: {
      type: String,
      required: true,
      text: true,
      index: true
    }
  });
  
  JobSchema.index({ jobTitle: 'text'});
  
  router.get('/search', async (req, res) =&gt; {
    try {
  
      const searchResults = await Job.find({$text: {$search: req.query.q }})
      console.log(searchResults);
      res.json({
        searchResults: searchResults
      });
    } catch (err) {
      res.json({message: err});
    }
  });
  </code></pre>
  
  <p>Any help would be appreciated :)</p>