网站中搜索选项的使用 [英] Using of search option in website

查看:66
本文介绍了网站中搜索选项的使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何在自己的网站中使用搜索.
假设我的网页上有一个文本框以及上面写的任何文本,它会从我的网站页面搜索该文本框并给出与该字词模式匹配的链接列表.服务器数据库.例如,在codeproject网站中,给出了右侧角搜索站点文本框,旁边是一个按钮.我想要相同的内容.
请帮帮我.
预先感谢.

Hi,
How to use search in own website.
Suppose I have a textbox in my web page and whatever text written over there.It search that from my website pages and give list of links that matches that pattern of word.I want this whole in mywebsite where I am using asp.net with sql server database. e.g In the codeproject website the right side corner search site textbox given and a button beside that.I want same .
Please help me for that.
Thanks in advance.

推荐答案

您好,

尝试在Google中搜索数据库搜索"和全文本搜索"-您将很快了解要解决的问题的规模,并且除非您开始要搜索的网站设置,否则您将尝试做些什么做到这一点非常困难.如果我是对的,CodeProject将使用标签和关键字来最大程度地减少对文章的搜索"实际数量,然后根据文章标题/描述等对其进行细化.这是一个有限的搜索.

我建议在您的网站上进行搜索的最简单方法是看看在您的网站上放置一个Google搜索框. Google允许您嵌入一个Google搜索框,专门搜索您的网站,这意味着您不必担心搜索,只要您的网站对搜索引擎友好即可.

希望这会有所帮助,
Ed
Hi there,

Try searching "database search" and "full-text search" in Google - you will soon understand the scale of the problem you are trying to tackle and that unless you started with your site set-up to be searched, what you are trying to do it is very hard. If I''m right, CodeProject uses tags and keywords to minimise the actual amount of "searching" it has to do for articles and then refines that based on article titles/descriptions etc. It is a limited search.

I would suggest the easiest way to do searching on your site is to look at putting a Google Search box on your site. Google will allow you to embed a Google search box that specifically searches your site meaning you don''t have to worry about searching, provided that is that your website is search engine friendly.

Hope this helps,
Ed


看看SQL Server的全文本搜索,这对您来说可能是一个非常强大的解决方案.
全文搜索 [ ^ ]
Take a look at the Full-Text search for SQL Server, this may is a pretty powerfull solution for you.
Full-Text search[^]


这篇关于网站中搜索选项的使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆