# Ferret

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

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

---

## [Search two related tables](https://www.ruby-forum.com/t/search-two-related-tables/135147)

<div class="topic-metadata">

**Author:** [@katsuo](https://www.ruby-forum.com/u/katsuo)\
**Replies:** 1\
**Last updated:** [April 24, 2008, 8:14am UTC](https://www.ruby-forum.com/t/search-two-related-tables/135147 "2008-04-24T08:14:49Z")

</div>

Hi, It would be trulely appreciated if anyone can give me some advise on this. I have two related tables titles and authors. Using acts\_as\_ferret, I can search by title name. However, when search by author name or aus…

---

## [Default maximum result size](https://www.ruby-forum.com/t/default-maximum-result-size/135145)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 1\
**Last updated:** [April 24, 2008, 8:11am UTC](https://www.ruby-forum.com/t/default-maximum-result-size/135145 "2008-04-24T08:11:17Z")

</div>

Hi, I’ve got a Ferret index which I’m using through ActsAsFerret on a database with about 300,000 records. Searches on the index (for example wildcard - “A\*”) seem to be truncated at 512 results. This is a problem as …

---

## [Uninstalling ferret from source](https://www.ruby-forum.com/t/uninstalling-ferret-from-source/135678)

<div class="topic-metadata">

**Author:** [@S\_D](https://www.ruby-forum.com/u/S_D)\
**Replies:** 0\
**Last updated:** [April 24, 2008, 5:08am UTC](https://www.ruby-forum.com/t/uninstalling-ferret-from-source/135678 "2008-04-24T05:08:33Z")

</div>

I installed ferret from a tarball rather than gem install. Per the README I installed from the extracted directory via; $ rake ext $ ruby setup.rb config $ ruby setup.rb setup $ ruby setup.rb install I’m now tryin…

---

## [Re: Custom Tokenizer not working](https://www.ruby-forum.com/t/re-custom-tokenizer-not-working/135677)

<div class="topic-metadata">

**Author:** [@S\_D](https://www.ruby-forum.com/u/S_D)\
**Replies:** 0\
**Last updated:** [April 24, 2008, 5:06am UTC](https://www.ruby-forum.com/t/re-custom-tokenizer-not-working/135677 "2008-04-24T05:06:12Z")

</div>

I changed XMLAnalyzer so that it does not inherit from Ferret::Analysis::Analyzer. That seemed to have no effect. I successfully ran ferret-browser.As shown below, I am using two fields - :file and :content. When I br…

---

## [Filter\_proc under acts\_as\_ferret](https://www.ruby-forum.com/t/filter-proc-under-acts-as-ferret/135664)

<div class="topic-metadata">

**Author:** [@sseung](https://www.ruby-forum.com/u/sseung)\
**Replies:** 0\
**Last updated:** [April 23, 2008, 11:27pm UTC](https://www.ruby-forum.com/t/filter-proc-under-acts-as-ferret/135664 "2008-04-23T23:27:15Z")

</div>

Hi, I’m having a problem with acts\_as\_ferret and the :filter\_proc option that gets passed to ferret::search. Let me preface this with being a ferret/AaF noob. The situation: I am trying to extend the search function…

---

## [Custom Tokenizer not working](https://www.ruby-forum.com/t/custom-tokenizer-not-working/135635)

<div class="topic-metadata">

**Author:** [@S\_D](https://www.ruby-forum.com/u/S_D)\
**Replies:** 1\
**Last updated:** [April 23, 2008, 8:23pm UTC](https://www.ruby-forum.com/t/custom-tokenizer-not-working/135635 "2008-04-23T20:23:56Z")

</div>

\[unfortunately I received my messages as a batched digest…hence, I’m forced to respond in a new thread. I’ve requested the administrator to change my config to receive each message on this list. Sorry for any inconven…

---

## [Custom Tokenizer not working](https://www.ruby-forum.com/t/custom-tokenizer-not-working/135625)

<div class="topic-metadata">

**Author:** [@S\_D](https://www.ruby-forum.com/u/S_D)\
**Replies:** 1\
**Last updated:** [April 23, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/custom-tokenizer-not-working/135625 "2008-04-23T19:09:05Z")

</div>

First, thanks to Jens K. for pointing a stupid error on my part regarding the use of test\_token\_stream(). My current problem, a custom tokenizer I’ve written in Ruby does not properly create an index (or at least sea…

---

## [Problem if method is called during Analyzer.token\_stream operation](https://www.ruby-forum.com/t/problem-if-method-is-called-during-analyzer-token-stream-operation/135564)

<div class="topic-metadata">

**Author:** [@S\_D](https://www.ruby-forum.com/u/S_D)\
**Replies:** 1\
**Last updated:** [April 23, 2008, 10:14am UTC](https://www.ruby-forum.com/t/problem-if-method-is-called-during-analyzer-token-stream-operation/135564 "2008-04-23T10:14:36Z")

</div>

I’ve written a tokenizer/analyzer that parses a file extracting tokens and operate this analyzer/tokenizer on ASCII data consisting of XML files (the tokenizer skips over XML elements but maintains relative positioni…

---

## [Ignoring 'accents' when i search](https://www.ruby-forum.com/t/ignoring-accents-when-i-search/135378)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 3\
**Last updated:** [April 22, 2008, 11:13am UTC](https://www.ruby-forum.com/t/ignoring-accents-when-i-search/135378 "2008-04-22T11:13:19Z")

</div>

Does anyone know of a way of being ‘accent-insensitive’ when i do a search? For example, if i have a resource with the name “La BohÃ¨me”, and someone searches for ‘boheme’ i want them to find that resource, even thoug…

---

## [Ferret (search application)](https://www.ruby-forum.com/t/ferret-search-application/134804)

<div class="topic-metadata">

**Author:** [@pravin](https://www.ruby-forum.com/u/pravin)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 10:10am UTC](https://www.ruby-forum.com/t/ferret-search-application/134804 "2008-04-15T10:10:25Z")

</div>

hi, This is pravin. i am trying to make search application in ROR for that i have installed ferret & acts\_as\_ferret plugin but , i got the following error Processing SearchController#search (for 127.0.0.1 at …

---

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

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 3\
**Last updated:** [April 15, 2008, 4:27am UTC](https://www.ruby-forum.com/t/which-field-s-matched/132961 "2008-04-15T04:27:28Z")

</div>

Is there a way to discover which fields in a document matched the search that was performed? I’ve just started with Ferret, but so far I can only get back the ids of the documents that were matched (along with the sco…

---

## [Find\_with\_ferret :multi not working for me (latest version)](https://www.ruby-forum.com/t/find-with-ferret-multi-not-working-for-me-latest-version/134722)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [April 14, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/find-with-ferret-multi-not-working-for-me-latest-version/134722 "2008-04-14T13:36:14Z")

</div>

Previously, for all my ferret searches, i was using find\_by\_contents, like this: @stuff = LearningObject.find\_by\_contents(“trumpet”, #ferret options {:multi =\> \[TeachingObject, LearningObject, Lesson, Course\], :page…

---

## [Trunk and single table inheritance](https://www.ruby-forum.com/t/trunk-and-single-table-inheritance/134554)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 1\
**Last updated:** [April 12, 2008, 9:55am UTC](https://www.ruby-forum.com/t/trunk-and-single-table-inheritance/134554 "2008-04-12T09:55:21Z")

</div>

My colleague Josh was having a hard time getting this email though either the web or email interfaces, so I’m forwarding it along. Hi all, I’m getting discrepancies between stable and trunk when doing a search involvi…

---

## [Indexing an XML/HTML File](https://www.ruby-forum.com/t/indexing-an-xml-html-file/134574)

<div class="topic-metadata">

**Author:** [@S\_D](https://www.ruby-forum.com/u/S_D)\
**Replies:** 0\
**Last updated:** [April 12, 2008, 7:04am UTC](https://www.ruby-forum.com/t/indexing-an-xml-html-file/134574 "2008-04-12T07:04:00Z")

</div>

I’m planning on indexing XML/HTML files. I only want to index the text contained in the files and not any of the elements or tags. I just finished reading Chapter 6 of “Ferret” (Balmain/O’Reilley) that presented a so…

---

## [More\_like\_this](https://www.ruby-forum.com/t/more-like-this/134428)

<div class="topic-metadata">

**Author:** [@jwigal](https://www.ruby-forum.com/u/jwigal)\
**Replies:** 2\
**Last updated:** [April 11, 2008, 2:45am UTC](https://www.ruby-forum.com/t/more-like-this/134428 "2008-04-11T02:45:43Z")

</div>

Does anyone have an example of how more\_like\_this works in acts\_as\_ferret? I’ve tried the following… @results = Post.find\_by\_contents params\[:q\] @mlt = @results.more\_like\_this :field\_names =\> \[:subject,:body\] but ge…

---

## [Patch to warn that "ferret\_server appears to be already running"](https://www.ruby-forum.com/t/patch-to-warn-that-ferret-server-appears-to-be-already-running/134083)

<div class="topic-metadata">

**Author:** [@elegant](https://www.ruby-forum.com/u/elegant)\
**Replies:** 2\
**Last updated:** [April 11, 2008, 12:14am UTC](https://www.ruby-forum.com/t/patch-to-warn-that-ferret-server-appears-to-be-already-running/134083 "2008-04-11T00:14:16Z")

</div>

Hi, I added the following two lines to the top of the start method in ferret\_server.rb (acts\_as\_ferret) pid = read\_pid\_file raise “ferret\_server appears to be already running” if pid Without this, I found that: I …

---

## [Ile Not Found Error occured at \<except.c\>:117 in xpop\_contex](https://www.ruby-forum.com/t/ile-not-found-error-occured-at-except-c-117-in-xpop-contex/134399)

<div class="topic-metadata">

**Author:** [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Replies:** 1\
**Last updated:** [April 10, 2008, 3:07pm UTC](https://www.ruby-forum.com/t/ile-not-found-error-occured-at-except-c-117-in-xpop-contex/134399 "2008-04-10T15:07:55Z")

</div>

Recently we have seen this error occurring on one of our servers (Debian). We are using the Drb Server and the error occurs even if we switch from Ferret 0.11.6 down to 0.11.4. It seems to occur after the application …

---

## [Single-table inheritance](https://www.ruby-forum.com/t/single-table-inheritance/134119)

<div class="topic-metadata">

**Author:** [@jfrench](https://www.ruby-forum.com/u/jfrench)\
**Replies:** 0\
**Last updated:** [April 8, 2008, 1:10am UTC](https://www.ruby-forum.com/t/single-table-inheritance/134119 "2008-04-08T01:10:04Z")

</div>

Has there been a change in the way AAF handles single-table inheritance? Using trunk, Model.find\_with\_ferret does not (for me, at any rate) return any instances of ModelSubclass, while ModelSubclass.find\_with\_ferret w…

---

## [:if block never being used/called in acts\_as\_ferret](https://www.ruby-forum.com/t/if-block-never-being-used-called-in-acts-as-ferret/134086)

<div class="topic-metadata">

**Author:** [@kylemathews](https://www.ruby-forum.com/u/kylemathews)\
**Replies:** 1\
**Last updated:** [April 7, 2008, 7:15pm UTC](https://www.ruby-forum.com/t/if-block-never-being-used-called-in-acts-as-ferret/134086 "2008-04-07T19:15:48Z")

</div>

I’m running Ferret 0.11.6-rc7 and trunk acts\_as\_ferret. Here’s my relevant code from model ‘Agency’: acts\_as\_ferret :if =\> Proc.new {|agency| agency.do\_index?}, :store\_class\_name =\> true, :fields =\> { :name =\> {:sto…

---

## [Multisite Rebuild Index Problems](https://www.ruby-forum.com/t/multisite-rebuild-index-problems/133934)

<div class="topic-metadata">

**Author:** [@mrpunkin](https://www.ruby-forum.com/u/mrpunkin)\
**Replies:** 0\
**Last updated:** [April 5, 2008, 6:27am UTC](https://www.ruby-forum.com/t/multisite-rebuild-index-problems/133934 "2008-04-05T06:27:34Z")

</div>

Hello guys. I followed the tutorial about multi-site / DB Hijacking and have it working starting clean with new objects… but if I need to rebuild my databases the :domain\_hash value doesn’t get indexed. I was wonderin…

---

## [Bug Report: Segmentation Fault when indexing with a specific set of FieldInfos](https://www.ruby-forum.com/t/bug-report-segmentation-fault-when-indexing-with-a-specific-set-of-fieldinfos/133869)

<div class="topic-metadata">

**Author:** [@Bira](https://www.ruby-forum.com/u/Bira)\
**Replies:** 2\
**Last updated:** [April 4, 2008, 4:56pm UTC](https://www.ruby-forum.com/t/bug-report-segmentation-fault-when-indexing-with-a-specific-set-of-fieldinfos/133869 "2008-04-04T16:56:16Z")

</div>

I’m submitting this through the mailing list because Trac won’t let me use its bug report form… Is there some more appropriate way of submitting bugs if Trac doesn’t work? This is the Trac error message: 500 Internal…

---

## [Act\_as\_ferret returned result is 10](https://www.ruby-forum.com/t/act-as-ferret-returned-result-is-10/133863)

<div class="topic-metadata">

**Author:** [@shreyas123](https://www.ruby-forum.com/u/shreyas123)\
**Replies:** 0\
**Last updated:** [April 4, 2008, 2:25pm UTC](https://www.ruby-forum.com/t/act-as-ferret-returned-result-is-10/133863 "2008-04-04T14:25:36Z")

</div>

I am using @query = Ferret::Search::PrefixQuery.new(“name”, params\[:q\],:max\_terms =\> 1000) to find the result from the Users table having their name start with the given parameter. It only gives me 10 results ever a…

---

## [Association question](https://www.ruby-forum.com/t/association-question/133624)

<div class="topic-metadata">

**Author:** [@s0nspark](https://www.ruby-forum.com/u/s0nspark)\
**Replies:** 0\
**Last updated:** [April 2, 2008, 3:39am UTC](https://www.ruby-forum.com/t/association-question/133624 "2008-04-02T03:39:44Z")

</div>

Hi, I have a photos model that has\_many comments. When the photo is saved, it builds the comments into a string that is indexed. When the comments are saved, it needs to re-index the comments from the photo model. Th…

---

## [Rebuild\_index generating incomplete index?](https://www.ruby-forum.com/t/rebuild-index-generating-incomplete-index/133617)

<div class="topic-metadata">

**Author:** [@pedrobelo](https://www.ruby-forum.com/u/pedrobelo)\
**Replies:** 1\
**Last updated:** [April 2, 2008, 2:42am UTC](https://www.ruby-forum.com/t/rebuild-index-generating-incomplete-index/133617 "2008-04-02T02:42:27Z")

</div>

I added acts\_as\_ferret to a project with ~40k products, but running rebuild\_index is not adding all of those to the ferret index (Product.rebuild\_index.size returns 26632). Any ideas? Thanks

---

## [Search problem (probably a simple one...?)](https://www.ruby-forum.com/t/search-problem-probably-a-simple-one/133610)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 0\
**Last updated:** [April 2, 2008, 12:32am UTC](https://www.ruby-forum.com/t/search-problem-probably-a-simple-one/133610 "2008-04-02T00:32:22Z")

</div>

Hi there, I’ve been spending hours trying to figure out how to do this ferret query correctly, but it just won’t work… The final ferret query should simply look like this: country: “United Kingdom” (it needs the “”…

---

## [AAF single server for multiple apps / databases](https://www.ruby-forum.com/t/aaf-single-server-for-multiple-apps-databases/133605)

<div class="topic-metadata">

**Author:** [@mrpunkin](https://www.ruby-forum.com/u/mrpunkin)\
**Replies:** 0\
**Last updated:** [April 2, 2008, 12:19am UTC](https://www.ruby-forum.com/t/aaf-single-server-for-multiple-apps-databases/133605 "2008-04-02T00:19:52Z")

</div>

I just read through the multiple-database guide and think I roughly understand the process of hashing the domain for purposes of keeping unique indexes. My question though is that I want to be able to keep separate in…

---

## [Installing Acts\_as\_ferret - 0.4.3 config question](https://www.ruby-forum.com/t/installing-acts-as-ferret-0-4-3-config-question/121771)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 4\
**Last updated:** [March 30, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/installing-acts-as-ferret-0-4-3-config-question/121771 "2008-03-30T18:29:10Z")

</div>

hello, installing ferret / aaf for the first time following instructions on aaf trac page I’m to the point of copying the DRb server start/stop scripts and config, where I read … “Sorry for the inconvenience, things…

---

## [DRb Server can not run!](https://www.ruby-forum.com/t/drb-server-can-not-run/109704)

<div class="topic-metadata">

**Author:** [@grandtang](https://www.ruby-forum.com/u/grandtang)\
**Replies:** 2\
**Last updated:** [March 28, 2008, 10:41pm UTC](https://www.ruby-forum.com/t/drb-server-can-not-run/109704 "2008-03-28T22:41:54Z")

</div>

I’m doing the next. 1, rails hecc 2, cd hecc 3, script/plugin install svn://projects.jkraemer.net/acts\_as\_ferret/tags/stable/acts\_as\_ferret 4, RAILS\_ENV=production vendor/plugins/acts\_as\_ferret/script/ferret\_start …

---

## [Why/when does the DRb server rebuild the index (when I don't](https://www.ruby-forum.com/t/why-when-does-the-drb-server-rebuild-the-index-when-i-dont/109958)

<div class="topic-metadata">

**Author:** [@aravet](https://www.ruby-forum.com/u/aravet)\
**Replies:** 2\
**Last updated:** [March 28, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/why-when-does-the-drb-server-rebuild-the-index-when-i-dont/109958 "2008-03-28T20:25:44Z")

</div>

Hi, I’m using DRb server, and sometimes it starts rebuilding the index for no - apparent - reason (no model nor DB schema change). As this blocks the computer for more that an hour, I must fix this problem before I p…

---

## [Acts\_as\_ferret 0.5.0 and will\_paginate](https://www.ruby-forum.com/t/acts-as-ferret-0-5-0-and-will-paginate/133198)

<div class="topic-metadata">

**Author:** [@peschkaj](https://www.ruby-forum.com/u/peschkaj)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 5:44pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-0-5-0-and-will-paginate/133198 "2008-03-28T17:44:58Z")

</div>

I was using the current stable version of acts\_as\_ferret to develop until I ran into the “Expected x to define Y” bug outlined in http://projects.jkraemer.net/acts\_as\_ferret/ticket/191 This fixed the problem I was run…

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

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