我现在创建了一个网站,我想添加搜索选项 [英] I Have A Create A Website Now I Want To Add Search Options

查看:84
本文介绍了我现在创建了一个网站,我想添加搜索选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个网站,我想添加搜索选项,所以请将源代码发送到该选项,就像在您的网站中添加搜索框一样搜索文章等我想添加它的方式

i have created a website and to that website i want to add the search option so send me source code to that option like in your website you have added search box to search articles etc same way i want to add it

推荐答案

这不是这个网站的工作方式。人们不只是向您发送源代码。这就是为什么会出现这种情况的一个很好的理由 - 您发送的代码可能无法正确解决您要解决的问题。搜索功能可能非常特定于网站,因为它可能在很大程度上依赖于特定字段的查询和数据库底层的技术。例如,假设您要搜索人员的姓名和帐户ID,搜索通过文章字段搜索将完全无关。



如果您想要选择更自由的文本搜索形式,您真的需要调查全文搜索系统,例如 Sphinx [ ^ ]。
This isn't really the way that this site works. People don't just send you the source code. There's a very good reason why this is the case - the code that you get sent will probably not be solving exactly the issue that you are trying to solve. Search functionality can be very specific to a website because it can depend heavily on queries on particular fields and the technology underlying the database. Suppose, for instance, that you want to search for people's names and account ids, having a search that searched through article fields would be completely irrelevant.

If you want to opt for a more free form of text searching, you really need to investigate full text search systems such as Sphinx[^].


从这里自学:Inmplement-Search-Engine [ ^ ]


这篇关于我现在创建了一个网站,我想添加搜索选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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