https://github.com/algolia/au... The basic function is to complete it automatically. You can check out the plug-in in the link, it may be helpful. The key is how you provide an automatically completed list of alternative data...
What I am talking about is the prompt of @, not the analysis of @ Simply put, if there is a personal name Wang hello, you enter ll, e, wang, Wang, an. . . . It can prompt the name Wang hello.
In fact, the principle is the same, but if your data volume is relatively large, it is not recommended to implement it directly based on the database. The like query performance is really not complimentary for large data volumes. It is recommended to introduce Lucene and spell out the name (name) and name (namePY) Index, and then implement a retrieval interface. After entering the @ symbol, just perform Suggest+ajax calling interface based on user input.
https://github.com/algolia/au...
The basic function is to complete it automatically. You can check out the plug-in in the link, it may be helpful. The key is how you provide an automatically completed list of alternative data...
What I am talking about is the prompt of @, not the analysis of @
Simply put, if there is a personal name Wang hello, you enter ll, e, wang, Wang, an. . . . It can prompt the name Wang hello.
In fact, the principle is the same, but if your data volume is relatively large, it is not recommended to implement it directly based on the database. The like query performance is really not complimentary for large data volumes. It is recommended to introduce Lucene and spell out the name (name) and name (namePY) Index, and then implement a retrieval interface. After entering the @ symbol, just perform Suggest+ajax calling interface based on user input.