有没有类似 Iconfinder.com 的好脚本?
基本上我正在寻找一个可以搜索给定数据库的搜索引擎。内容将是正在搜索的文本。
Basically I'm looking for a search engine that searches through a given database. The content will be text being searched.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可能想要使用诸如 Solr 之类的服务。开始使用它的最简单方法是找到基于“云”的版本,例如 Websolr。但是,解决方案将取决于您在对站点进行编程时希望使用的语言。
You will probably want to use a service such as Solr. The easiest way to get started using it is to find a 'cloud' based version, such as Websolr. However, the solution will depend on what language you wish to use when programming your site.
解决方案在一定程度上取决于语言:
1. 对于java/c#,你有lucene/solr
2.对于python,你有haystack
你可以直接通过LIKE/ILIKE在DB中进行文本搜索,但性能取决于DB。
Solutions depend somewhat on language:
1. For java/c#, you have lucene/solr
2. for python you have haystack
You could do text search in the DB directly via LIKE/ILIKE, but the performance depends on DB.
Iconfinder 是专门为图标搜索而编写的,当时(2007 年推出)没有适合于此的脚本。
构建像 Iconfinder 这样的搜索引擎并不是火箭科学。我认为最难的部分是调整 SQL 并弄清楚如何对内容进行排名。目前,我收集有关展示次数和下载次数的数据,并从中计算出一个值。图标的排名基于此值(下载/印象)以及关键字与给定图标的标签的匹配程度。
Iconfinder was coded specifically for icon search and at the time (launched in 2007) there were no scripts that worked well for this.
Building a search engine like Iconfinder is not rocket science. I think the hardest part is getting the SQL tuned and figure out how to rank the content. At the moment I collect data about impressions and downloads and calculate a value from that. The icons' rank is based on this value (download/impression) and how well keywords match the tags for the given icon.