title: How to search text in specific documents and not all documents in mongodb?
body: <p>First I created index for my data:</p>
  <pre><code>db.stores.find( { $text: { $search: &quot;java coffee shop&quot; } } )
  </code></pre>
  <p>and here is the code for searching text inside the indexed field.</p>
  <pre><code>db.stores.find( { $text: { $search: &quot;shop&quot; } } )
  </code></pre>
  <p>but the problem is it searches the whole documents in my collection for the word &quot;shop&quot;, and I want to limit its explore to some specific documents based on for example their id.
  In other words, I want to just search the word &quot;shop&quot; through documents in my collection that
  the value of their Occupation field is equal to &quot;Z1&quot;;</p>