在我的网站上实现良好搜索的最快方法是什么?

发布于 2024-07-18 05:59:11 字数 1435 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

洋洋洒洒 2024-07-25 05:59:11

最简单的方法是添加自定义 Google 搜索。

http://www.google.com/coop/cse/

The Easy Way Out would be to add a custom Google search.

http://www.google.com/coop/cse/

意中人 2024-07-25 05:59:11

未经测试,但类似的东西过去对我有用:

<form action="http://www.google.com/search" onSubmit="this.q.value+=' site:mysite.com';return true">
<input name="q" />
</form>

否则,也许是这样的: http://www. google.com/sitesearch/

Untested, but something like this has worked for me in the past:

<form action="http://www.google.com/search" onSubmit="this.q.value+=' site:mysite.com';return true">
<input name="q" />
</form>

Otherwise, perhaps this: http://www.google.com/sitesearch/

守望孤独 2024-07-25 05:59:11

好的,您在评论中添加了您希望将搜索集成到桌面应用程序中的内容。 我过去使用 ht://Dig 取得了相当好的成功,但它似乎已经失败了一些动力。 更先进的现代应用程序倾向于使用 Apache Lucene,这将需要大量的集成。

如果您正在寻找更高级别的东西,请查看 solr,它将自己归类为“开源企业搜索服务器”。

Ok so you added in the comment you're looking to integrate search into a desktop application. I've used ht://Dig with pretty good success in the past, but it seems to have lost some momentum. More advanced, modern applications tend to use Apache Lucene which will require a significant amount of integration.

If you're looking for something bit higher level, check out solr, which classifies itself as an "open source enterprise search server".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文