在网站上搜索 [英] Search in web site

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

问题描述

有人可以帮助我在网站上进行搜索吗?如果我在搜索中输入任何单词,它应该会在我的网站中给我该单词的结果.

Can anyone help me to search in a web site? If I enter any word in the search it should give me a result of that word in my website.

推荐答案

如果您谈论的是来自您的网站的内容数据库,那么您可能需要在数据库中进行全文搜索.这将导致您在数据库中的所有位置以及所有文本中搜索已定义的单词.

然后,编写一个存储过程,它将在该数据库的每个表中搜索该单词的所有必填字段(最好查看要搜索的所有表).

Anurag:)
If you are talking about content of the website coming from your database, then you may need to put on the full text searching in your database. This will lead you to search everywhere and all text in the database for the defined word.

Then, write a stored procedure which will search all the required fields for that particular word in each table of that database(preferably make a view of all the tables to be searched).

Anurag :)


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

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