title: Mongoose create multiple indexes
body: <p>I have one problem I wanted to implement full text search for mongodb, so i got stuck becouse in database created just one index for text search and i want to have multiple fields for search .. exmaple of schema : </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>name: {
      type: String,
      required: true,
      trim: true,
      index: 'text'
    },
    sub_name: {
      type: String,
      trim: true
  
    },
    location: [{
        geo: {
          type: [Number],
          index: '2d'
        },
        description: {
          type: String,
          trim: true,
          index: 'text'
        },
        address: {
  
          city: {
            type: String,
            index: 'text'
          },
  
          street: {
            type: String,
            index: 'text'
          },
          state: {
            type: String,
            index: 'text'
          }
        },</code></pre>
  </div>
  </div>
  </p>
  
  <p>so what is the trick to do that ? how can i apply mutliple fields for full text search  ? thx for anwser ... </p>