Create fulltext index
public ensureFulltextIndex ( array | string $field = '$**', array $weights = null, $defaultLanguage = Language::ENGLISH, $languageOverride = null ) : |
||
$field | array | string | definition of fields where full text index ensured. May be string to ensure index on one field, array of fields to create full text index on few fields, and widdcard '$**' to create index on all fields of collection. Default value is '$**' |
$weights | array | For a text index, the weight of an indexed field denotes the significance of the field relative to the other indexed fields in terms of the text search score. |
$defaultLanguage | The default language associated with the indexed data determines the rules to parse word roots (i.e. stemming) and ignore stop words. The default language for the indexed data is english. | |
$languageOverride | To use a field with a name other than language, include the language_override option when creating the index. | |
리턴 |