# Ferret

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

[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:** 8

---

## [Ferret's Memory usage when searching](https://www.ruby-forum.com/t/ferrets-memory-usage-when-searching/139547)

<div class="topic-metadata">

**Author:** [@EfrSSSSn\_DSSS\_az](https://www.ruby-forum.com/u/EfrSSSSn_DSSS_az)\
**Replies:** 1\
**Last updated:** [June 5, 2008, 12:34pm UTC](https://www.ruby-forum.com/t/ferrets-memory-usage-when-searching/139547 "2008-06-05T12:34:26Z")

</div>

Hello, We are experiencing some performance problems when using Ferret and we are trying to isolate the problem. We have about 80 GB in Indexes for one of our clients and when a search is performed on those indexes t…

---

## [Simple, fast indexing script v. rebuild\_index](https://www.ruby-forum.com/t/simple-fast-indexing-script-v-rebuild-index/139509)

<div class="topic-metadata">

**Author:** [@thornett](https://www.ruby-forum.com/u/thornett)\
**Replies:** 0\
**Last updated:** [June 4, 2008, 4:38pm UTC](https://www.ruby-forum.com/t/simple-fast-indexing-script-v-rebuild-index/139509 "2008-06-04T16:38:33Z")

</div>

I recently needed to re-index certain user records that had been improperly indexed (see bug http://projects.jkraemer.net/acts\_as\_ferret/ticket/220 for all the gory details). A variation of the following code was used…

---

## [Error decoding input string](https://www.ruby-forum.com/t/error-decoding-input-string/138034)

<div class="topic-metadata">

**Author:** [@soderic](https://www.ruby-forum.com/u/soderic)\
**Replies:** 3\
**Last updated:** [May 30, 2008, 11:46am UTC](https://www.ruby-forum.com/t/error-decoding-input-string/138034 "2008-05-30T11:46:09Z")

</div>

Hi, I am trying to index a number of Spanish language text files, but a large fraction of the files are generating errors like the following… Error: exception 2 not handled: Error decoding input string. Check that y…

---

## [Log/ferret\_server.log empty](https://www.ruby-forum.com/t/log-ferret-server-log-empty/138902)

<div class="topic-metadata">

**Author:** [@nejrb](https://www.ruby-forum.com/u/nejrb)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/log-ferret-server-log-empty/138902 "2008-05-28T20:47:08Z")

</div>

Hello everybody. I started running drb server on my server, but ferret\_server.log is always empty even after many queries. I checked permissions and that’s not the problem. Any ideas? Regards!

---

## [Cannot list within associatiion: uninitialized constant](https://www.ruby-forum.com/t/cannot-list-within-associatiion-uninitialized-constant/138883)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 5:03pm UTC](https://www.ruby-forum.com/t/cannot-list-within-associatiion-uninitialized-constant/138883 "2008-05-28T17:03:42Z")

</div>

Testing ferret w a simple model, I don’t understand what happen… class Domain \< ActiveRecord::Base has\_many :categories end class Category \< ActiveRecord::Base has\_many :notices belongs\_to :domain end class Notic…

---

## [Can AAF start the DRb service when it's not yet running?](https://www.ruby-forum.com/t/can-aaf-start-the-drb-service-when-its-not-yet-running/138734)

<div class="topic-metadata">

**Author:** [@neongrau](https://www.ruby-forum.com/u/neongrau)\
**Replies:** 0\
**Last updated:** [May 27, 2008, 10:25am UTC](https://www.ruby-forum.com/t/can-aaf-start-the-drb-service-when-its-not-yet-running/138734 "2008-05-27T10:25:09Z")

</div>

i need to find a workaround for the problem that the AAF service won’t start on system boot. so i thought it could work when the mongrel processes check if the DRb is running and if not issue some system command to st…

---

## [Sort by date AND score](https://www.ruby-forum.com/t/sort-by-date-and-score/138687)

<div class="topic-metadata">

**Author:** [@nejrb](https://www.ruby-forum.com/u/nejrb)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 6:01pm UTC](https://www.ruby-forum.com/t/sort-by-date-and-score/138687 "2008-05-26T18:01:41Z")

</div>

Hello everybody! I am trying to sort my search results by date, and then each day by score. For example: – 26 May Score 0.74 Score 0.55 – 25 May Score 0.93 Score 0.68 Score 0.41 I tried creating an array like t…

---

## [Index size](https://www.ruby-forum.com/t/index-size/138494)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 0\
**Last updated:** [May 23, 2008, 5:59pm UTC](https://www.ruby-forum.com/t/index-size/138494 "2008-05-23T17:59:47Z")

</div>

Hi, Is it possible that when building indexes on my Windows dev machine that I end up with 3.cfs files and then when deploying to my prod Linux box I only end up with 1 cfs file. It seems a little odd, but everythi…

---

## [Ferret startup problem: Ferret::Analysis::Analyzer not found](https://www.ruby-forum.com/t/ferret-startup-problem-ferret-analyzer-not-found/138464)

<div class="topic-metadata">

**Author:** [@grahamglass](https://www.ruby-forum.com/u/grahamglass)\
**Replies:** 0\
**Last updated:** [May 23, 2008, 10:09am UTC](https://www.ruby-forum.com/t/ferret-startup-problem-ferret-analyzer-not-found/138464 "2008-05-23T10:09:47Z")

</div>

Hi everyone, I’m hitting a very basic start-up issue with Ferret. I did a “gem install ferret” and installed ferret 0.11.5 (mswin32) on my Windows XP machine. No problems. Then I did a “gem install acts\_as\_ferret” an…

---

## [RecordNotFound with ID=search?](https://www.ruby-forum.com/t/recordnotfound-with-id-search/138383)

<div class="topic-metadata">

**Author:** [@san1981](https://www.ruby-forum.com/u/san1981)\
**Replies:** 0\
**Last updated:** [May 22, 2008, 2:12pm UTC](https://www.ruby-forum.com/t/recordnotfound-with-id-search/138383 "2008-05-22T14:12:24Z")

</div>

Hello, I’ve installed the plugin act\_as\_ferret and I try to install this on my model “question”. For this, I’ve then add this in questions\_controller.rb def search @results = Question.find\_by\_contents(@search) unles…

---

## [Ferret page up to date?](https://www.ruby-forum.com/t/ferret-page-up-to-date/137671)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 11:59pm UTC](https://www.ruby-forum.com/t/ferret-page-up-to-date/137671 "2008-05-20T23:59:10Z")

</div>

Is the page at http://projects.jkraemer.net/acts\_as\_ferret/ up-to-date as far as setting up aaf? I followed the steps, but have a hard time getting searches to work. After lots of googling and trying other things, now…

---

## [Feature question](https://www.ruby-forum.com/t/feature-question/138064)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 1\
**Last updated:** [May 19, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/feature-question/138064 "2008-05-19T23:34:32Z")

</div>

Hi, Can ferret search for a combination of words and return the distance between them in a text? If it exists is there a way you can improve on this by looking if they are separated by a certain character(like . for …

---

## [Acts\_as\_ferret - same index in two apps, reindexing issue](https://www.ruby-forum.com/t/acts-as-ferret-same-index-in-two-apps-reindexing-issue/137489)

<div class="topic-metadata">

**Author:** [@knewter](https://www.ruby-forum.com/u/knewter)\
**Replies:** 2\
**Last updated:** [May 19, 2008, 10:06pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-same-index-in-two-apps-reindexing-issue/137489 "2008-05-19T22:06:50Z")

</div>

I’ve got a site that has the main site as well as an admin app. Both of them use the same ferret index. Objects from the main site are namespaced in the admin site, and those namespaced objects share the same db wit…

---

## [Problem with scope\_out and acts\_as\_ferret](https://www.ruby-forum.com/t/problem-with-scope-out-and-acts-as-ferret/128142)

<div class="topic-metadata">

**Author:** [@tradem](https://www.ruby-forum.com/u/tradem)\
**Replies:** 2\
**Last updated:** [May 19, 2008, 8:49pm UTC](https://www.ruby-forum.com/t/problem-with-scope-out-and-acts-as-ferret/128142 "2008-05-19T20:49:49Z")

</div>

Hi! We have a problem when using scope\_out plugin and acts\_as\_ferret in Rails 2.0. When we’re using both plugins we get an error when trying to rebuild index or starting the server (druby://localhost:9010) /vendor/…

---

## [Windows user in despair - could a MappingFilter help?](https://www.ruby-forum.com/t/windows-user-in-despair-could-a-mappingfilter-help/137824)

<div class="topic-metadata">

**Author:** [@neongrau](https://www.ruby-forum.com/u/neongrau)\
**Replies:** 0\
**Last updated:** [May 16, 2008, 5:26pm UTC](https://www.ruby-forum.com/t/windows-user-in-despair-could-a-mappingfilter-help/137824 "2008-05-16T17:26:08Z")

</div>

i’m using ferret with aaf since a year now. everything is running with UTF-8 (even the MSSQL DB plays nice with UTF-8) just ferret on windows doesnt work with UTF-8, the only locale it accepts is “German\_Germany.1252”…

---

## [Picolena, a ferret+rails documents search engine](https://www.ruby-forum.com/t/picolena-a-ferret-rails-documents-search-engine/135300)

<div class="topic-metadata">

**Author:** [@ericd](https://www.ruby-forum.com/u/ericd)\
**Replies:** 2\
**Last updated:** [May 16, 2008, 1:34pm UTC](https://www.ruby-forum.com/t/picolena-a-ferret-rails-documents-search-engine/135300 "2008-05-16T13:34:34Z")

</div>

Hi everybody! I am proud to present you a small project I have been working on for a while: Picolena, a documents search engine written in Rails. ( http://picolena.devjavu.com/ ). It obviously uses Ferret for indexi…

---

## [Ferret won't load on my mac](https://www.ruby-forum.com/t/ferret-wont-load-on-my-mac/137546)

<div class="topic-metadata">

**Author:** [@idahoev](https://www.ruby-forum.com/u/idahoev)\
**Replies:** 2\
**Last updated:** [May 15, 2008, 1:45am UTC](https://www.ruby-forum.com/t/ferret-wont-load-on-my-mac/137546 "2008-05-15T01:45:56Z")

</div>

I’ve installed ferret (11.6) on my mac with gem install ferret, and installed acts\_as\_ferret into my rails application. This causes my app to crash. gem claims to have installed ferret successfully. However, every …

---

## [Deadlock in ferret server running in Cygwin](https://www.ruby-forum.com/t/deadlock-in-ferret-server-running-in-cygwin/137538)

<div class="topic-metadata">

**Author:** [@secobarbital](https://www.ruby-forum.com/u/secobarbital)\
**Replies:** 1\
**Last updated:** [May 14, 2008, 2:17am UTC](https://www.ruby-forum.com/t/deadlock-in-ferret-server-running-in-cygwin/137538 "2008-05-14T02:17:47Z")

</div>

Hi everyone, We are having instability running the acts\_as\_ferret DRb server on Cygwin, with the ferret server crashing after a variable amount of time, from as little as 2 hours to as much as a week. This is what we …

---

## [Searcher Explain](https://www.ruby-forum.com/t/searcher-explain/137168)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 1\
**Last updated:** [May 13, 2008, 9:14am UTC](https://www.ruby-forum.com/t/searcher-explain/137168 "2008-05-13T09:14:44Z")

</div>

Hi, I am unable to use the Searcher’s explain method. Anytime I call it, I get Segmentation Faults and it kills the process I have running my Rails site. Has anyone else had this problem? Here is some code I am tr…

---

## [Using StemFilter with PhraseQuery](https://www.ruby-forum.com/t/using-stemfilter-with-phrasequery/137397)

<div class="topic-metadata">

**Author:** [@S\_D](https://www.ruby-forum.com/u/S_D)\
**Replies:** 1\
**Last updated:** [May 13, 2008, 9:11am UTC](https://www.ruby-forum.com/t/using-stemfilter-with-phrasequery/137397 "2008-05-13T09:11:44Z")

</div>

Hi, I’m having difficulty getting the StemFilter and PhraseQuery to work properly together. When I use a StemFilter with a PhraseQuery, searches only work if the phrase consists of stems. For example, the search phra…

---

## [Ferret index internal strutures documentation](https://www.ruby-forum.com/t/ferret-index-internal-strutures-documentation/137161)

<div class="topic-metadata">

**Author:** [@yferrety](https://www.ruby-forum.com/u/yferrety)\
**Replies:** 0\
**Last updated:** [May 9, 2008, 4:22pm UTC](https://www.ruby-forum.com/t/ferret-index-internal-strutures-documentation/137161 "2008-05-09T16:22:11Z")

</div>

Hi List, I’m new to Ferret, so appologize if the question was already asked before. I’d like to know if there’s a good technical documentation about Ferret’s index internal structures (inverted index in disk, skip li…

---

## [Newbie in ferret](https://www.ruby-forum.com/t/newbie-in-ferret/137006)

<div class="topic-metadata">

**Author:** [@varun](https://www.ruby-forum.com/u/varun)\
**Replies:** 0\
**Last updated:** [May 8, 2008, 7:23am UTC](https://www.ruby-forum.com/t/newbie-in-ferret/137006 "2008-05-08T07:23:28Z")

</div>

Can some body suggest me a good user friendly guide to ferret and act-as-ferret. I tried reading the o’reilly book but still the basics are not getting clear. Can some body send me a link to sample ruby code which ha…

---

## [Porblem with custom analyzer](https://www.ruby-forum.com/t/porblem-with-custom-analyzer/136289)

<div class="topic-metadata">

**Author:** [@djtal](https://www.ruby-forum.com/u/djtal)\
**Replies:** 1\
**Last updated:** [May 6, 2008, 7:50am UTC](https://www.ruby-forum.com/t/porblem-with-custom-analyzer/136289 "2008-05-06T07:50:40Z")

</div>

Hi, I m trying to set French stop Words. So i created a file called “FrenchStemmingAnalyzer.rb” and i put it in /lib of my rails App. class FrenchStemmingAnalyzer \< Ferret::Analysis::Analyzer include Ferret::Analysi…

---

## [:if usage](https://www.ruby-forum.com/t/if-usage/136569)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 0\
**Last updated:** [May 3, 2008, 7:42pm UTC](https://www.ruby-forum.com/t/if-usage/136569 "2008-05-03T19:42:20Z")

</div>

Does anyone has a functional example of the :if option from the acts\_as\_ferret method? Thanks!

---

## [Handling Carriage Returns](https://www.ruby-forum.com/t/handling-carriage-returns/136024)

<div class="topic-metadata">

**Author:** [@S\_D](https://www.ruby-forum.com/u/S_D)\
**Replies:** 2\
**Last updated:** [April 30, 2008, 7:54am UTC](https://www.ruby-forum.com/t/handling-carriage-returns/136024 "2008-04-30T07:54:12Z")

</div>

It’s my understanding that the tokens in a token\_stream consist of text along with start/stop positions that represent the byte positions of the text within the corresponding document field. The documentation I’ve bee…

---

## [Looped concurrent rebuild](https://www.ruby-forum.com/t/looped-concurrent-rebuild/136117)

<div class="topic-metadata">

**Author:** [@staypufd](https://www.ruby-forum.com/u/staypufd)\
**Replies:** 0\
**Last updated:** [April 29, 2008, 3:25am UTC](https://www.ruby-forum.com/t/looped-concurrent-rebuild/136117 "2008-04-29T03:25:50Z")

</div>

I’ve used the code at http://pastie.textmate.org/66602 for an index rebuild which catches edits during the rebuild. I’ve tweaked this for my own use and sharing here for others & feedback. It’s not the prettiest loop…

---

## [Public Ferret git repository?](https://www.ruby-forum.com/t/public-ferret-git-repository/135868)

<div class="topic-metadata">

**Author:** [@Bira](https://www.ruby-forum.com/u/Bira)\
**Replies:** 1\
**Last updated:** [April 28, 2008, 12:35pm UTC](https://www.ruby-forum.com/t/public-ferret-git-repository/135868 "2008-04-28T12:35:15Z")

</div>

Are there plans for a public git repository for Ferret? I read its development had switched to git, and since git is my preferred version control system, it would be nice to have a public repository to clone from :). …

---

## [Which field(s) matched?](https://www.ruby-forum.com/t/which-field-s-matched/136044)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 0\
**Last updated:** [April 28, 2008, 11:49am UTC](https://www.ruby-forum.com/t/which-field-s-matched/136044 "2008-04-28T11:49:01Z")

</div>

Mark - Have you made any progress with porting ferret\_field\_scores to 0.11.6? I’m at the stage now where I desperately need it, so if you haven’t I’d really appreciate it if you could just post the diff for the earli…

---

## [Use Index#highlight with custom key instead of doc\_id](https://www.ruby-forum.com/t/use-index-highlight-with-custom-key-instead-of-doc-id/135932)

<div class="topic-metadata">

**Author:** [@ericd](https://www.ruby-forum.com/u/ericd)\
**Replies:** 0\
**Last updated:** [April 26, 2008, 2:35pm UTC](https://www.ruby-forum.com/t/use-index-highlight-with-custom-key-instead-of-doc-id/135932 "2008-04-26T14:35:31Z")

</div>

Hi! I’d like to highlight matching content of a document for a given query. I use index.highlight(query, doc\_id, :field =\> :content, :excerpt\_length =\> :all, :pre\_tag =\> “\<\<”, :post\_tag =\> “\>\>” ) for this. Problem…

---

## [Find\_with\_ferret :multi not working for me (latest version) (apologies if this was already posted)](https://www.ruby-forum.com/t/find-with-ferret-multi-not-working-for-me-latest-version-apologies-if-this-was-already-posted/134742)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 4\
**Last updated:** [April 24, 2008, 5:02pm UTC](https://www.ruby-forum.com/t/find-with-ferret-multi-not-working-for-me-latest-version-apologies-if-this-was-already-posted/134742 "2008-04-24T17:02:51Z")

</div>

First of all, sorry if this appears in the list twice - i was awaiting moderation all day and then finally joined the list properly and sent this direct. Previously, for all my ferret searches, i was using find\_by\_co…

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

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