How long does mongo need to add a full-text index to its name field?
Add some necessary knowledge:
Mongo does not have a fixed call
nameIt seems that there is a name in your own table.
nameThe field of the.
For general fields, there are indeed some restrictions on fields as index keys. Please refer toDocument. That is, less than 1024 bytes. Exceeding this limit will prevent indexing. However, full-text indexing does not exist to solve this problem. It mainly matches meaningful words, ignoring case, single and complex numbers, tenses, etc. There are also full-text indexesDocument descriptionPlease read carefully, it is an index form completely different from ordinary index.
In addition, although a table can only have one full-text index, it can set different weights for different fields and finally calculate a score of matching degree.