我们如何在网站中编写用于搜索按钮的代码以搜索网站内容 [英] how can we write a code for search button in a website for searching the content of a website

查看:133
本文介绍了我们如何在网站中编写用于搜索按钮的代码以搜索网站内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何在网站中编写用于搜索按钮的代码以搜索网站内容?

how can we write a code for search button in a website for searching the content of a website?

推荐答案

简单的方法-使用http://www.google.com/sitesearch [ http://msdn.microsoft.com/en-us/magazine/cc163355.aspx [ ^ ]
或另一种方式-Java方式;-) http://lucene.apache.org/java/docs/index .html [ ^ ]只是一个开玩笑,但这是专业的,例如SQL全文搜索功能.简单的按钮和自制的搜索算法不足以进行合适的网站搜索(选择google或任何其他框架),智能"不足,请参阅手册中的示例搜索按钮" ;-).汉斯
the easy way - use http://www.google.com/sitesearch[^]
the more professional way http://msdn.microsoft.com/en-us/magazine/cc163355.aspx[^]
or the other way - the java way ;-) http://lucene.apache.org/java/docs/index.html[^] just a joke, but this is professional like SQL Fulltext search capability. A simple button and a selfmade search algorithm is not "smart" enough for a suitable website search (choose google or any other framework) and see the manual for "examle searach buttons" ;-). Hans


这篇关于我们如何在网站中编写用于搜索按钮的代码以搜索网站内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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