Today, the editor of Downcodes will share with you a piece of fuzzy search code similar to the Baidu engine in the ASP site to solve the problem of matching search keywords in the site. This code can achieve keyword segmentation and sort and display the results according to exact matching and fuzzy matching, improving the user search experience. The code has been tested in actual applications and has good results. I hope it can help all developers.
Share a piece of fuzzy search code similar to Baidu engine in ASP site
As early as N years ago, some netizens asked: How can fuzzy search on the site similar to Baidu be implemented? Recently, for work needs, I did an asp site search. Keywords that require exact matching should be ranked first, and keywords that require fuzzy matching. I searched the Internet for a long time and couldn't find the code I needed, so I had to write it myself and now share it with those in need.
Function introduction
1. Use word segmentation technology to first split the keywords into multiple phrases. For example: "Search for alchemist" is divided into multiple phrases such as "search", "search for alchemy", "refining alchemy", "alchemist", etc.
2. For example: the database title field that completely matches "Search for Alchemist" is ranked first, and the database title field that vaguely matches "Search", "Search", "Alchemy", "Pharmacist" and other phrases are displayed at the back. .
3. For example, if the database content field completely matches "Search Alchemist", it will be displayed at the back.
Please see the effect: http://www.my478.com
example:
The source code of Jinyun Smart Logistics Platform is a Jinyun Yuansheng plug-in, and its operation requires the support of Jinyun framework!
Freight logistics platform: multi-merchant dedicated line release + customer delivery demand release + cargo information route inquiry + LTL online ordering + merchant door-to-door pickup + customer dedicated line delivery, etc.
【Update mechanism】
The current application belongs to the Lego scene body, and the scene body itself will not be updated frequently. Mainly depends on the updated iteration of the package plug-in! These dependent update mechanisms can achieve one update and update all scene bodies at the same time, greatly improving the quality and efficiency of application update iterations!
Features
1. In order to facilitate the promotion of the platform, you can set up: car owners, dedicated lines to publish information (need to push friends, etc.);
2. The entire freight mode, quotation mode, etc. are designed strictly with reference to the logistics park standards;
3. All operations of car owner + cargo owner + dedicated line are implemented on the mobile phone.
Hope this code can help you! If you have any questions, please leave them in the comment area and the editor of Downcodes will try our best to answer them.