title: How to get more relevant results with mongoDB full text search
body: <p>I created index for name field in my schema. 
  Here is my code. </p>
  
  <pre><code>`Product.find( {$text : {$search : "apple macbook pro"} }, {score : { $meta: "textScore" }}).sort({ score: { $meta: "textScore" }}).exec((err,res)=&gt;{
  
        console.log("res is  "+JSON.stringify(res));
   })`
  </code></pre>
  
  <p>My json response is </p>
  
  <p><code>
  [<br>
        {<br>
           "name":"Macbook Pro 13 and Pro Touch 13\" (2016, 2017) Case, Snugg Apple Macbook Pro 13 and Pro Touch 13\" (2016, 2017) Retina Cover [Deluxe Satin Touch] Ultra-Slim Shell Skin Design - Gold Marble",
        {<br>
           "name":"ProCase 12 - 12.9 Inch Laptop Sleeve Case Cover Bag for Macbook Surface Pro 4 3, Apple iPad Pro, Most 11\" 12\" Laptop Ultrabook Notebook MacBook Chromebook -Grey"
        },
        {<br>
           "name":"Macbook Pro Touch 15\" (2016, 2017) Case, Snugg Apple Macbook Pro Touch 15\" (2016, 2017) Retina Cover [Deluxe Satin Touch] Ultra-Slim Shell Skin Design - Gold Marble"
        },
        {<br>
           "name":"MacBook Pro 15 Case 2017 &amp; 2016 A1707, ProCase Rubberized Hard Case Shell Cover and Keyboard Cover for Apple Macbook Pro 15\" (Newest 2017 &amp; 2016 Release) with Touch Bar and Touch ID -Black"
        },
        {<br>
           "name":"Apple MacBook Pro MC118LL/A 15.4-Inch Laptop"
        },<br>
    / *  I need to get this record at top  as gave key word as apple macbook pro  */ 
   ]</code></p>
  
  <p>I need to get the last record to be at top as I gave key word as "apple macbook pro" </p>
  
  <p>Please help me fix this for getting better relevant results. </p>