# Ferret

**URL:** https://www.ruby-forum.com/c/ruby-apps/ferret/8.md?page=6

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 7

---

## [Website down](https://www.ruby-forum.com/t/website-down/134055)

<div class="topic-metadata">

**Author:** [@deepakjois](https://www.ruby-forum.com/u/deepakjois)\
**Replies:** 2\
**Last updated:** [July 24, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/website-down/134055 "2008-07-24T17:15:27Z")

</div>

Hi It seems the website http://ferret.davebalmain.com/trac is giving a 502 error. Is somebody looking into it? Regards Deepak

---

## [Grabbing names from main table foreign keys](https://www.ruby-forum.com/t/grabbing-names-from-main-table-foreign-keys/143455)

<div class="topic-metadata">

**Author:** [@pozza](https://www.ruby-forum.com/u/pozza)\
**Replies:** 0\
**Last updated:** [July 18, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/grabbing-names-from-main-table-foreign-keys/143455 "2008-07-18T20:08:55Z")

</div>

I have a table being searched by ferret called expenses. In the expenses table I have a person\_id and project\_id field that links to the people and projects tables. How do I specify in acts\_as\_ferret to search for the…

---

## [Installation probs. Where is aaf\_install?](https://www.ruby-forum.com/t/installation-probs-where-is-aaf-install/143439)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [July 18, 2008, 5:10pm UTC](https://www.ruby-forum.com/t/installation-probs-where-is-aaf-install/143439 "2008-07-18T17:10:54Z")

</div>

In the installation instructions on http://projects.jkraemer.net/acts\_as\_ferret/ there’s an instruction "To install the DRb server start/stop scripts and config from your gem repository to your Rails project, call the …

---

## [Acts\_as\_ferret](https://www.ruby-forum.com/t/acts-as-ferret/143202)

<div class="topic-metadata">

**Author:** [@gaurav\_dua123](https://www.ruby-forum.com/u/gaurav_dua123)\
**Replies:** 0\
**Last updated:** [July 16, 2008, 9:21am UTC](https://www.ruby-forum.com/t/acts-as-ferret/143202 "2008-07-16T09:21:58Z")

</div>

Hi, I had made one apllication for job posting. in which a user has to fill a form. In that form there are section like Personal Information(in which he has to to fill his personal information), Professional Informati…

---

## [Ferret keeps DB connections open?](https://www.ruby-forum.com/t/ferret-keeps-db-connections-open/143160)

<div class="topic-metadata">

**Author:** [@them](https://www.ruby-forum.com/u/them)\
**Replies:** 0\
**Last updated:** [July 15, 2008, 8:22pm UTC](https://www.ruby-forum.com/t/ferret-keeps-db-connections-open/143160 "2008-07-15T20:22:16Z")

</div>

I’m working on an adopted project that is using acts\_as\_ferret with rails 2.0.2 - when I save a model that implements this and check the number of open connections in mySql - I get another connection. This came to my…

---

## [Ferret 'File Not Found' error with DRB](https://www.ruby-forum.com/t/ferret-file-not-found-error-with-drb/143084)

<div class="topic-metadata">

**Author:** [@gaudimila](https://www.ruby-forum.com/u/gaudimila)\
**Replies:** 0\
**Last updated:** [July 15, 2008, 1:59am UTC](https://www.ruby-forum.com/t/ferret-file-not-found-error-with-drb/143084 "2008-07-15T01:59:01Z")

</div>

We’ve installed Ferret and DRB Server for the first time, for Rails, along with acts\_as\_ferret, and for a couple of weeks in development we got no errors, but now we’re starting to see an error like this: File Not Fou…

---

## [Hijack DB Tutorial Question](https://www.ruby-forum.com/t/hijack-db-tutorial-question/142977)

<div class="topic-metadata">

**Author:** [@huckyducky](https://www.ruby-forum.com/u/huckyducky)\
**Replies:** 0\
**Last updated:** [July 14, 2008, 5:51am UTC](https://www.ruby-forum.com/t/hijack-db-tutorial-question/142977 "2008-07-14T05:51:15Z")

</div>

I am one of the foolhardy people who hijacks the connection on each request. I have followed the tutorial on multiple databases to the letter, and I first verified that acts\_as\_ferret works with the find\_by\_ferret met…

---

## [AAF and Location Filter](https://www.ruby-forum.com/t/aaf-and-location-filter/142909)

<div class="topic-metadata">

**Author:** [@arvind\_gautam](https://www.ruby-forum.com/u/arvind_gautam)\
**Replies:** 2\
**Last updated:** [July 13, 2008, 8:24am UTC](https://www.ruby-forum.com/t/aaf-and-location-filter/142909 "2008-07-13T08:24:42Z")

</div>

I am using Acts as Ferret and trying to filter my search results by location (doing a location-based search). I came across a locationfilter on http://blog.tourb.us/archives/ferret-and-location-based-searches ← this …

---

## [Using the wildcard plus partial searched](https://www.ruby-forum.com/t/using-the-wildcard-plus-partial-searched/69104)

<div class="topic-metadata">

**Author:** [@richard](https://www.ruby-forum.com/u/richard)\
**Replies:** 3\
**Last updated:** [July 10, 2008, 11:20am UTC](https://www.ruby-forum.com/t/using-the-wildcard-plus-partial-searched/69104 "2008-07-10T11:20:56Z")

</div>

I’ve seen no definitive answer to this question. I’ve noticed that typing “t” in the search box will return no results however if I type “t\*” it brings up all results beginning with t. I would like this behaviour on b…

---

## [Acts\_as\_ferret - :find\_by\_contents returns no results](https://www.ruby-forum.com/t/acts-as-ferret-find-by-contents-returns-no-results/129622)

<div class="topic-metadata">

**Author:** [@magnifiedplaid](https://www.ruby-forum.com/u/magnifiedplaid)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 12:24am UTC](https://www.ruby-forum.com/t/acts-as-ferret-find-by-contents-returns-no-results/129622 "2008-07-10T00:24:37Z")

</div>

I’ve just installed the gem and plugin, and updated my model accordingly. However, MyModel.find\_by\_contents always returns no results, even though I know it should! MyModel.find\_by\_contents “blah” =\> #\<ActsAsFerret…

---

## [Acts\_as\_ferret problem](https://www.ruby-forum.com/t/acts-as-ferret-problem/132260)

<div class="topic-metadata">

**Author:** [@srinivasraopala](https://www.ruby-forum.com/u/srinivasraopala)\
**Replies:** 1\
**Last updated:** [July 9, 2008, 8:36am UTC](https://www.ruby-forum.com/t/acts-as-ferret-problem/132260 "2008-07-09T08:36:18Z")

</div>

Hi, I want to use the ferret plugin. I installed the acts\_as\_ferret. And installed the acts\_as\_feret plugin also. when I am going to generate the controller, it is showing one error like b/ruby/site\_ruby/1.8/rubyge…

---

## [Filter\_proc problem with limit](https://www.ruby-forum.com/t/filter-proc-problem-with-limit/141895)

<div class="topic-metadata">

**Author:** [@cubiq](https://www.ruby-forum.com/u/cubiq)\
**Replies:** 1\
**Last updated:** [July 4, 2008, 11:58am UTC](https://www.ruby-forum.com/t/filter-proc-problem-with-limit/141895 "2008-07-04T11:58:21Z")

</div>

Hi list, I have a problem grouping with ferret. I’m using the filter\_proc from Dave’s book as seen below results = {} group\_by\_proc = lambda do |doc\_id, score, searcher| doc = searcher\[doc\_id\] (results\[doc\[:pk\_file…

---

## [Search Ferret Index for Use With Autocomplete / Options List](https://www.ruby-forum.com/t/search-ferret-index-for-use-with-autocomplete-options-list/140345)

<div class="topic-metadata">

**Author:** [@gaudimila](https://www.ruby-forum.com/u/gaudimila)\
**Replies:** 17\
**Last updated:** [July 2, 2008, 11:44am UTC](https://www.ruby-forum.com/t/search-ferret-index-for-use-with-autocomplete-options-list/140345 "2008-07-02T11:44:20Z")

</div>

I’ve got Ferret up and running for a Rails application and I’d like to be able to use autocomplete in my text search field so that as the user is typing each character of the search term, the index is queried for matc…

---

## [Possible bug when creating a Ferret::Search::Sort object?](https://www.ruby-forum.com/t/possible-bug-when-creating-a-ferret-sort-object/130641)

<div class="topic-metadata">

**Author:** [@Bira](https://www.ruby-forum.com/u/Bira)\
**Replies:** 4\
**Last updated:** [July 1, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/possible-bug-when-creating-a-ferret-sort-object/130641 "2008-07-01T18:07:57Z")

</div>

I may have run across a bug in Ferret: if throws a segmentation fault when I try to create a Sort object using the default fields (SCORE and DOC\_ID), but setting reverse to true. Here’s the minimal example: #!/usr/bi…

---

## [Scores in ferret](https://www.ruby-forum.com/t/scores-in-ferret/141586)

<div class="topic-metadata">

**Author:** [@icottee](https://www.ruby-forum.com/u/icottee)\
**Replies:** 2\
**Last updated:** [June 27, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/scores-in-ferret/141586 "2008-06-27T16:10:11Z")

</div>

Hi, Are scores an absolute calculation or relative to what is in a given index? I ask because I wanted to look into distributing my index over a few servers. The idea being that I could get 10 results for a couple of…

---

## [Conditions are not working](https://www.ruby-forum.com/t/conditions-are-not-working/141427)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 1\
**Last updated:** [June 26, 2008, 7:31pm UTC](https://www.ruby-forum.com/t/conditions-are-not-working/141427 "2008-06-26T19:31:42Z")

</div>

My conditions do not seem to be having no effect on the ferret search. The search results are correct (they return the right values based on my search terms) but they are not limiting the results as I would expect. cl…

---

## [How to analyze key words](https://www.ruby-forum.com/t/how-to-analyze-key-words/141246)

<div class="topic-metadata">

**Author:** [@jaredjackson](https://www.ruby-forum.com/u/jaredjackson)\
**Replies:** 0\
**Last updated:** [June 24, 2008, 12:53am UTC](https://www.ruby-forum.com/t/how-to-analyze-key-words/141246 "2008-06-24T00:53:37Z")

</div>

Is there a way to search the index for the most popular term in a field? For example, in an article model, can I find the most frequently appearing term in the body text?

---

## [Trouble deploying ferret with Capistrano](https://www.ruby-forum.com/t/trouble-deploying-ferret-with-capistrano/141086)

<div class="topic-metadata">

**Author:** [@mroths](https://www.ruby-forum.com/u/mroths)\
**Replies:** 0\
**Last updated:** [June 21, 2008, 9:55pm UTC](https://www.ruby-forum.com/t/trouble-deploying-ferret-with-capistrano/141086 "2008-06-21T21:55:56Z")

</div>

Why do I get this error “No such file or directory - /home/mrichman/www/myapp/releases/20080619193605/log/ferret\_index.log” when the release I’m deploying is 20080621135622 ? I have /shared/log/ferret\_index.log, which…

---

## [Search entire database](https://www.ruby-forum.com/t/search-entire-database/141012)

<div class="topic-metadata">

**Author:** [@vshyam121](https://www.ruby-forum.com/u/vshyam121)\
**Replies:** 0\
**Last updated:** [June 20, 2008, 7:56pm UTC](https://www.ruby-forum.com/t/search-entire-database/141012 "2008-06-20T19:56:46Z")

</div>

Hi, is there any way to search through all the models and display it without having to loop through all the columns of each table? I looked around and the only thing I could find was to specify :models =\> :all as an …

---

## [Undefined method \`add'](https://www.ruby-forum.com/t/undefined-method-add/119867)

<div class="topic-metadata">

**Author:** [@morten](https://www.ruby-forum.com/u/morten)\
**Replies:** 6\
**Last updated:** [June 20, 2008, 9:08am UTC](https://www.ruby-forum.com/t/undefined-method-add/119867 "2008-06-20T09:08:38Z")

</div>

We’ve been running into problems with ferret indexing lately. The problem is intermittent and some times it persists. Just got this after wiping the index and redeploying: NoMethodError (undefined method add' for Solu…

---

## [Undefined method 'to\_doc' for Ferret](https://www.ruby-forum.com/t/undefined-method-to-doc-for-ferret/140598)

<div class="topic-metadata">

**Author:** [@axees335](https://www.ruby-forum.com/u/axees335)\
**Replies:** 0\
**Last updated:** [June 16, 2008, 6:24pm UTC](https://www.ruby-forum.com/t/undefined-method-to-doc-for-ferret/140598 "2008-06-16T18:24:33Z")

</div>

Hi, Sporadically I am getting the following error: NoMethodError (undefined method to\_doc' for #\<Ferret::Document:0xb71c9724\>): (druby://localhost:9010) /usr/lib/ruby/gems/1.8/gems/acts\_as\_ferret-0.4.3/li b/local\_index…

---

## [Strip out non-alphanumeric characters before saving to index](https://www.ruby-forum.com/t/strip-out-non-alphanumeric-characters-before-saving-to-index/140390)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [June 16, 2008, 1:58pm UTC](https://www.ruby-forum.com/t/strip-out-non-alphanumeric-characters-before-saving-to-index/140390 "2008-06-16T13:58:24Z")

</div>

Does anyone know a simple way, with ferret or a\_a\_f, to strip out everything that’s not a letter, number or space before saving to the index? I know that i could do a custom method for every indexed field that regexe…

---

## [Ferret DRb on windows?](https://www.ruby-forum.com/t/ferret-drb-on-windows/113093)

<div class="topic-metadata">

**Author:** [@neongrau](https://www.ruby-forum.com/u/neongrau)\
**Replies:** 8\
**Last updated:** [June 13, 2008, 6:25pm UTC](https://www.ruby-forum.com/t/ferret-drb-on-windows/113093 "2008-06-13T18:25:26Z")

</div>

i’m running a bunch of proxybalanced mongrels on a windows server. and since the memory consumption of all those mongrels is getting too high i wanted to set up the DRb’ed ferret server. but script/ferret\_start doesn’…

---

## [Multi select with conditions](https://www.ruby-forum.com/t/multi-select-with-conditions/135040)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 4\
**Last updated:** [June 13, 2008, 11:31am UTC](https://www.ruby-forum.com/t/multi-select-with-conditions/135040 "2008-06-13T11:31:04Z")

</div>

Hi I’m doing a multi-model search like this, which works absolutely fine: @search\_results = ActsAsFerret::find( "trumpet", \[Resource, Lesson, Course\], #(ferret) options { :page =\> 1, :per\_page =\> 20, :sort =\>…

---

## [Similar words](https://www.ruby-forum.com/t/similar-words/140153)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 5\
**Last updated:** [June 12, 2008, 1:55pm UTC](https://www.ruby-forum.com/t/similar-words/140153 "2008-06-12T13:55:25Z")

</div>

Is there a way to get a list of similar words to the ones a user has searched for? So if they search for (in my case) transferaze which has no matches I can get back an array like this \[‘transferase’\] ? I know I can …

---

## [Multi-search pagination issue with ar\_conditions](https://www.ruby-forum.com/t/multi-search-pagination-issue-with-ar-conditions/140235)

<div class="topic-metadata">

**Author:** [@omgitsads](https://www.ruby-forum.com/u/omgitsads)\
**Replies:** 1\
**Last updated:** [June 12, 2008, 4:00am UTC](https://www.ruby-forum.com/t/multi-search-pagination-issue-with-ar-conditions/140235 "2008-06-12T04:00:48Z")

</div>

Hi, I’m having a problem with pagination in AAF when I include active record conditions in the results. Basically, it lists all the results on page 1, then pages after that may or may not even display. As far as I can …

---

## [Tutorial multi search with ferret?](https://www.ruby-forum.com/t/tutorial-multi-search-with-ferret/137617)

<div class="topic-metadata">

**Author:** [@san1981](https://www.ruby-forum.com/u/san1981)\
**Replies:** 1\
**Last updated:** [June 12, 2008, 3:12am UTC](https://www.ruby-forum.com/t/tutorial-multi-search-with-ferret/137617 "2008-06-12T03:12:58Z")

</div>

Hello, I would like to use the plugin act\_as\_ferret for a multiple search in different model, I’ve found some examples on web but only for one model. Does someone know a nice tutorial for search in multiple models? T…

---

## [Project directions](https://www.ruby-forum.com/t/project-directions/138629)

<div class="topic-metadata">

**Author:** [@Julio\_Cesar\_O](https://www.ruby-forum.com/u/Julio_Cesar_O)\
**Replies:** 1\
**Last updated:** [June 6, 2008, 11:36am UTC](https://www.ruby-forum.com/t/project-directions/138629 "2008-06-06T11:36:54Z")

</div>

Hey all, just recently I stumbled upon this http://ferret.davebalmain.com/trac/timeline which seemed like good news. I thought Ferret was put on hold or perhaps dying, and having participated recently in a few discus…

---

## [Making sorting case insensitive](https://www.ruby-forum.com/t/making-sorting-case-insensitive/139703)

<div class="topic-metadata">

**Author:** [@EfrSSSSn\_DSSS\_az](https://www.ruby-forum.com/u/EfrSSSSn_DSSS_az)\
**Replies:** 1\
**Last updated:** [June 6, 2008, 11:23am UTC](https://www.ruby-forum.com/t/making-sorting-case-insensitive/139703 "2008-06-06T11:23:18Z")

</div>

Hello, I’ve been trying to make sorting in ferret case insensitive without any luck. I’ve been searching the mailing list, the docs and nothing. Apparently setting the type option for the sort to string should do it,…

---

## [Is Ferret's SVN repository down?](https://www.ruby-forum.com/t/is-ferrets-svn-repository-down/139518)

<div class="topic-metadata">

**Author:** [@Bira](https://www.ruby-forum.com/u/Bira)\
**Replies:** 2\
**Last updated:** [June 5, 2008, 1:37pm UTC](https://www.ruby-forum.com/t/is-ferrets-svn-repository-down/139518 "2008-06-05T13:37:49Z")

</div>

Is Ferret’s SVN repository down? I’m trying to get the source from svn://davebalmain.com/ferret, but I keep getting “Connection Refused” errors. Did the URL change, or is Ferret’s repository really down? – Bira

[Previous page](https://www.ruby-forum.com/c/ruby-apps/ferret/8.md?page=5)

[Next page](https://www.ruby-forum.com/c/ruby-apps/ferret/8.md?page=7)
