title: Mongo DB Search Query
body: <p>I have Written the Following code in my program but it is treating every word as seprate keyword.... I want full sentence to be treated as one keyword only. </p>
  
  <pre><code>var typed =typing.substring(4,typing.indexOf(":")-3)
  db.collection('Question').find({$text:{$search : typed }},{projection:{_id: 0, Question:1}}).toArray(function(err, result) 
      {
          if(err)
              console.log(err);
          console.log(result);
      })
  </code></pre>
  
  <p>$text is index name on my database table.</p>