文件名称:test
- 所属分类:
- Web服务器
- 资源属性:
- [Windows] [Visual C] [Basic/ASP] [源码]
- 上传时间:
- 2013-09-17
- 文件大小:
- 73kb
- 下载次数:
- 0次
- 提 供 者:
- 邓**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
分享一段asp站内类似百度引擎的模糊搜索代码
早在N年前就有网友问过:类似百度的站内模糊搜索怎样才能实现?最近工作需要,做了一个 asp 站内搜索。要求完全匹配的关键词要排在前面,关键词要模糊匹配。在网上搜了半天没有找到需要的代码,只好自己编写,现在分享给有需要的人。
功能介绍:
1、利用分词技术,先把关键词拆分为多个词组。如:“搜索炼药师”,拆分为:“搜索”、“索炼”、“炼药”、“药师”等多个词组。
2、如:数据库标题字段完全匹配“搜索炼药师”的排在前面,数据库标题字段模糊匹配“搜索”、“索炼”、“炼药”、“药师”等多个词组的分别在后面展示。
3、如:数据库内容字段完全匹配“搜索炼药师”的展示出来也排在后面。-Share some asp station fuzzy search engines like Baidu code N years ago, there are users as early as asked: Similar to Baidu' s station fuzzy search How can we achieve? Recent work requirements, do a search for asp station. Requires an exact match to the top surface of keywords, keyword to fuzzy matching. Search the web for a long time did not find the necessary code, had to write your own, and now share with people in need. Features: 1, the use of word segmentation, first split into multiple keyword phrases. Such as: " Search refining pharmacists" , split into: " Search" , " cable refining" , " mixing drugs" , " pharmacist" and other phrases. 2, such as: Database header field exactly matches " Search refining pharmacists," the top surface, the database header field fuzzy matches " Search" , " cable refining" , " mixing drugs" , " pharmacist" and other phrases were showing in the back . 3, such as: da
早在N年前就有网友问过:类似百度的站内模糊搜索怎样才能实现?最近工作需要,做了一个 asp 站内搜索。要求完全匹配的关键词要排在前面,关键词要模糊匹配。在网上搜了半天没有找到需要的代码,只好自己编写,现在分享给有需要的人。
功能介绍:
1、利用分词技术,先把关键词拆分为多个词组。如:“搜索炼药师”,拆分为:“搜索”、“索炼”、“炼药”、“药师”等多个词组。
2、如:数据库标题字段完全匹配“搜索炼药师”的排在前面,数据库标题字段模糊匹配“搜索”、“索炼”、“炼药”、“药师”等多个词组的分别在后面展示。
3、如:数据库内容字段完全匹配“搜索炼药师”的展示出来也排在后面。-Share some asp station fuzzy search engines like Baidu code N years ago, there are users as early as asked: Similar to Baidu' s station fuzzy search How can we achieve? Recent work requirements, do a search for asp station. Requires an exact match to the top surface of keywords, keyword to fuzzy matching. Search the web for a long time did not find the necessary code, had to write your own, and now share with people in need. Features: 1, the use of word segmentation, first split into multiple keyword phrases. Such as: " Search refining pharmacists" , split into: " Search" , " cable refining" , " mixing drugs" , " pharmacist" and other phrases. 2, such as: Database header field exactly matches " Search refining pharmacists," the top surface, the database header field fuzzy matches " Search" , " cable refining" , " mixing drugs" , " pharmacist" and other phrases were showing in the back . 3, such as: da
(系统自动生成,下载前可以参看下载内容)
下载文件列表
data.mdb
index.asp
search.asp
conn.asp