# Search Failure?

**URL:** <https://www.ruby-forum.com/t/search-failure/65705>\
**Category:** Ruby-Forum\
**Created:** [August 20, 2006, 6:13pm UTC](https://www.ruby-forum.com/t/search-failure/65705 "2006-08-20T18:13:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincentcao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/977dab/32.png) [@vincentcao](https://www.ruby-forum.com/u/vincentcao)\
**Post date:** [August 20, 2006, 6:13pm UTC](https://www.ruby-forum.com/t/search-failure/65705/1 "2006-08-20T18:13:51Z")

</div>

I checek out the newest source code from SVN,  
it seems my RForum search function does not work ,here is my log  
information:

Processing ForumController#search (for 127.0.0.1 at 2006-08-20 23:53:04)  
[GET]  
Parameters: {“action”=\>“search”, “controller”=\>“forum”,  
“forums”=\>[“1”], “query”=\>“come”}  
e[4;35;1mBlockedIp Load (0.016000)e[0m e[0mSELECT \* FROM blocked\_ips  
WHERE (ip = ‘127.0.0.1’) LIMIT 1e[0m  
e[4;36;1mForum Load (0.000000)e[0m e[0;1mSELECT \* FROM forums ORDER  
BY site\_id, position e[0m  
id\_score\_model array: []  
Query: come +forum\_id:(1 +deleted:0  
Result id\_array: [],  
result:  
Rendering within layouts/default  
Rendering forum/search  
e[4;35;1mForum Columns (0.031000)e[0m e[0mSHOW FIELDS FROM  
forumse[0m  
Completed in 0.17100 (5 reqs/sec) | Rendering: 0.07800 (45%) | DB:  
0.04700 (27%) | 200 OK  
[[http://localhost/search?query=come&forums[]=1](http://localhost/search?query=come&forums%5B%5D=1)]

---

<div class="post-metadata">

**Author:** ![vincentcao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/977dab/32.png) [@vincentcao](https://www.ruby-forum.com/u/vincentcao)\
**Post date:** [August 21, 2006, 8:34am UTC](https://www.ruby-forum.com/t/search-failure/65705/2 "2006-08-21T08:34:59Z")

</div>

hi you guys:  
i must add some extra infomation about my question before.  
i check the newest source code ,then install ferret ,rake migrate  
(schema version:12 ),there are around 10 post(is not empty) in my forum.  
when i use the search function ,search the key words like ‘come’,will  
search  
nothing ,but there does have the keywords:‘come’.  
i doubt if i fail to config the ferret or something else? does anyone  
can tell what happen?  
Thanks  
vincent

---

<div class="post-metadata">

**Author:** ![vincentcao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/977dab/32.png) [@vincentcao](https://www.ruby-forum.com/u/vincentcao)\
**Post date:** [August 21, 2006, 6:25pm UTC](https://www.ruby-forum.com/t/search-failure/65705/3 "2006-08-21T18:25:13Z")

</div>

Vincent Tsao wrote:

> hi you guys:  
> i must add some extra infomation about my question before.  
> i check the newest source code ,then install ferret ,rake migrate  
> (schema version:12 ),there are around 10 post(is not empty) in my forum.  
> when i use the search function ,search the key words like ‘come’,will  
> search  
> nothing ,but there does have the keywords:‘come’.  
> i doubt if i fail to config the ferret or something else? does anyone  
> can tell what happen?  
> Thanks  
> vincent

You can either

1. set :auto\_index =\> true in app/models/post.rb  
or
2. use scripts/update\_index to update the index periodically.

The latter is recommended, especially if your forum has high traffic. Be  
warned though that Ferret 0.9.5 is not very stable, so you might  
experience some segfaults. I hope that these problems will be fixed in  
the 0.10.0 version that is expected to be released soon.

---

<div class="post-metadata">

**Author:** ![vincentcao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/977dab/32.png) [@vincentcao](https://www.ruby-forum.com/u/vincentcao)\
**Post date:** [August 21, 2006, 6:55pm UTC](https://www.ruby-forum.com/t/search-failure/65705/4 "2006-08-21T18:55:40Z")

</div>

I do try both your suggestions ,I’m afraid ,it still doesn’t work, here  
is my install ferret information:

C:\Documents and Settings\vincent\>gem install ferret  
Need to update 5 gems from [http://gems.rubyforge.org](http://gems.rubyforge.org)  
…  
complete  
Building native extensions. This could take a while…  
ruby extconf.rb install ferret  
creating Makefile

nmake

nmake install

nmake clean  
Successfully installed ferret-0.9.5  
Installing ri documentation for ferret-0.9.5…  
Installing RDoc documentation for ferret-0.9.5…

Maybe the ferret want to play a joke with me? 🙂  
I wander if anyone face the same problem like mine  
Thanks  
vincent

---

<div class="post-metadata">

**Author:** ![vincentcao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/977dab/32.png) [@vincentcao](https://www.ruby-forum.com/u/vincentcao)\
**Post date:** [August 21, 2006, 7:08pm UTC](https://www.ruby-forum.com/t/search-failure/65705/5 "2006-08-21T19:08:15Z")

</div>

Hi Andreas S.:  
I think I found what’s the problem is:  
Do you remenber these tips in search template?

“Search in: (hold the Control or Command key to select multiple  
forums)”

I search a key words like “demo” ,if i select multiple forums,then it  
will  
return nothing, but if i just select only one forums, it will return the  
expect  
result, i wonder if this situation is a bug of RForum or Ferret?  
thanks  
vincent
