Ruby on Rails Saturday, November 27, 2010

I think you have to specify which fields ferret will index. Take a
look at: https://github.com/jkraemer/acts_as_ferret (under "Usage").
I got a lot of problems with ferret under production, you may consider
switching to sphinx/thinking sphinx.

On 27 Nov, 07:00, Arun Kumar <li...@ruby-forum.com> wrote:
> Hi All,
>   I want to implement full text searching in my rails 3.0 application, i
> am using acts_as_ferret gem for that. i installed acts_as_ferret gem.
>
> Installed gems list:
> ====================
> acts_as_ferret (0.5.2)
> jk-ferret (0.11.8.2)
> rails (3.0.1)
> will_paginate (3.0.pre2)
>
> And i followed these step, for try in ubuntu environment....
>
> run: "rails new test -d mysql"
> #added the gem acts_as_ferret in Gemfile
> run:  "bundle install"
> It also completed properly, i saw the acts_as_ferret gem  that list
> I created scaffold for user it creates the basic CRUD for 'user'
> And i started the server, it was running properly.
> I added some data to database
>
> I added the code like below in my application
>
> Model
> =====
> class User < ActiveRecord::Base
>    acts_as_ferret
> end
>
> Controller:
> ==========
> @result = User.find_with_ferret('jak')
>
> If i tried (inspect) to get the result it returns empty Array object.
>
> Note: i have the data in database feilds like search text(jak), When i
> try this same approach in rails version 2.1.1 it is working fine!
>
> 1. Please suggest or help me address my mistake in above work ?
> 2. Is there any other way to implement full text search as fast as like
> ferret ?
> 3. Is it problem with acts_as_ferret in rails 3 ?
>
> Thanks in Advance,
> Jak
>
> --
> Posted viahttp://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment