使用 Rails 进行全文搜索 [英] Full Text Searching with Rails

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

问题描述

我一直在寻找用于 Rails 的插件/宝石.大多数文章将 Ferret (Lucene) 与 Ultrasphinx 或可能是 Thinking Sphinx 进行比较,但没有一篇文章提到 SearchLogic.有没有人知道这个比较如何?您使用什么,它的性能如何?

I've been looking into searching plugins/gems for Rails. Most of the articles compare Ferret (Lucene) to Ultrasphinx or possibly Thinking Sphinx, but none that talk about SearchLogic. Does anyone have any clues as to how that one compares? What do you use, and how does it perform?

推荐答案

  • thinking_sphinx 和 sphinx 运行良好,没有索引、查询、安装问题(5 或 6 次安装,包括生产 slicehost)

    • thinking_sphinx and sphinx work beautifully, no indexing, query, install problems ever (5 or 6 install, including production slicehost )

      为什么不是每个人都使用狮身人面像,比如 craigslist?在这里阅读它的局限性(一年半以前的文章.sphinx 开发人员 Aksyonoff 正在研究这些,他正在以惊人的速度添加功能和可靠性并消除错误)

      why doesn't everybody use sphinx, like, say craigslist? read here about its limitations (year and a half old articles. The sphinx developer, Aksyonoff, is working on these and he's putting in features and reliability and stamping out bugs at an amazing pace)

      http://codemonkey.ravelry.com/2008/01/09/sphinx-for-search/

      http://www.ibm.com/developerworks/开源/库/os-php-apachesolr/

      完整比较文本搜索引擎 - Lucene、Sphinx、Postgresql、MySQL?

      • ferret:易于安装,不正确,索引非常慢(一个 mysql db:sphinx:3 秒,ferret:50 分钟).负载下生产中的 drb 服务器中记录良好的问题(索引损​​坏).话虽如此,自从acts-as_ferret 3 年前问世以来,我一直在develometn 中使用它,它对我很有帮助.在某些情况下,不遵守搬运工词干是一种优势.

      • ferret: easy install, doesn't stem properly, very slow indexing (one mysql db: sphinx: 3 seconds, ferret: 50 minutes). Well documented problems (index corruption) in drb servers in production under load. Having said that, i have use it in develometn since acts-as_ferret came out 3 years ago, and it has served me well. Not adhering to porter stemming is an advantage in some contexts.

      Lucene 和 Solr 是开源搜索的大猩猩/麦克卡车/重量级冠军.团队在 solr 14 发布:

      Lucene and Solr is the gorilla/mack truck / heavyweight champ of open source search. The teams have been doing an impressive number of new features in solr 14 release:

      acts-as-solr:一旦tomcat或码头就位,效果很好,但有时会很痛苦.mattmatt 的 AAS 分支 是主要分支,但该项目相对无人维护.

      acts-as-solr: works well, once the tomcat or jetty is in place, but those sometimes are a pain. The A-A-S fork by mattmatt is the main fork, but the project is relatively unmaintained.

      re the tomcat install: SOLR/lucene 无疑是我见过的任何软件包中最好的知识库/支持搜索引擎(我想我并不感到惊讶),这里的搜索框:

      re the tomcat install: SOLR/lucene has unquestionably the best knowledge base/ support search engine of any software package i've seen ( i guess i'm not that surprised), the search box here:

      http://www.lucidimagination.com/

      • Sunspot 新的 ruby​​ 包装器,基于 solr-ruby.看起来很有希望,但我无法在 OSX 上安装它.通过 AR 索引所有 ruby​​ 对象,而不仅仅是数据库

      • Sunspot the new ruby wrapper, build on solr-ruby. Looks promising, but I couldn't get it to install on OSX. Indexes all ruby objects, not just databases through AR

      真正有启发性的一件事是安装 2 个搜索插件,例如sphinx 和 SOLR、sphinx 和 ferret,看看它们返回了哪些不同的结果.就像 @sphinx_results - @ferret_results

      one thing that's really instructive is to install 2 search plugins, e.g. sphinx and SOLR, sphinx and ferret, and see what different results they return. It's as easy as @sphinx_results - @ferret_results

      刚刚看到这个帖子和回复

      just saw this post and responses

      http://zooie.wordpress.com/2009/07/06/a-comparison-of-open-source-search-engines-and-indexing-twitter/

      http://www.jroller.com/otis/entry/open_source_search_engine_benchmark

      http://www.flax.co.uk/blog/2009/07/07/xapian-compared/

      这篇关于使用 Rails 进行全文搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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