message: Update link to createIndex
  indexes(gh-page): mention weights
  indexes(gh-page): update link to "createIndexes"
  indexes(gh-page): update variable names to current ones
  indexes(gh-page): mention "text" as an field option
  This is a squash merge of typegoose/typegoose#233
diff: title: "Indexes"
  ---
  -`@index(properties: object, options: object)` is used to set indexes (mainly for compound indexes)
  - - `properties`: set key-number pairs like `{ prop1: 1 }` (1 for ascending and -1 for descending)
  - - `options`: [Please Refer to this](https://mongodb.github.io/node-mongodb-native/3.0/api/Db.html#createIndex)
  +`@index(fields: object, options: object)` is used to set indexes (mainly for compound indexes)
  + - `fields`: set of key-number pairs like `{ field1: 1 }` (`1` for ascending and `-1` for descending), or for text indexes, `{ field1: 'text' }`.
  + - `options`: [please see the MongoDB driver docs](https://mongodb.github.io/node-mongodb-native/3.6/api/Db.html#createIndex). Note that if you want to add `weights` to the `options` (for [full-text search](https://docs.mongodb.com/manual/tutorial/control-results-of-text-search/)), you must define the same set of fields in `fields` as in the `weights`.
  Example:
  