Re: Adding SEARCH functionality to a website

RubyonRails_newbie
Tue, 27 Oct 2009 18:21:49 -0000

Ah actually, in Terminal there is this:

configured index for class Info:
{:ferret_fields=>{"username"=>
{:term_vector=>:with_positions_offsets, :boost=>1.0, :highlight=>:yes,
:via=>"username", :store=>:no, :index=>:yes},
"email"=>
{:term_vector=>:with_positions_offsets, :boost=>1.0, :highlight=>:yes,
:via=>"email", :store=>:no, :index=>:yes}},
:user_default_field=>nil, :enabled=>true, :fields=>
["username", "email"],
:index_dir=>"/Users/me/apps/ruby/project_test/
index/development/
info", :mysql_fast_batches=>true, :single_index=>false,
:index_base_dir=>"/
Users/me/apps/ruby/project_test/index/development/
info", :name=>:info, :reindex_batch_size=>1000,
:raise_drb_errors=>false, :registered_models=>
[Info(id: integer, user_id: integer, first_name: string, last_name:
string, gender: string, birthdate: date, city: string, ski_snowboard:
string)], :ferret=>{:default_field=>["username",
"email"], :path=>"/
Users/me/apps/ruby/project_test/index/development/
info", :analyzer=>#<Ferret::Analysis::StandardAnalyzer:
0x26db044>, :lock_retry_time=>2, :auto_flush=>true,
:or_default=>false, :key=>:key, :dir=>#<Ferret::Store::FSDirectory:
0x26c8d04>, :handle_parse_errors=>true, :create_if_missing=>true}}

But I don''t get why it isnt returning anything





On 27 Oct, 16:34, Marnen Laibow-Koser <rails-mailing-l...@andreas-
s.net> wrote:
> RubyonRails_newbie wrote:
> > what have I missed?
>
> > I''m new to ruby on rails, and followed the tutorial to set it
up..
>
> > What other config do I need???
>
> How should we know, without any info on what errors you''re
getting?
>
> Best,
> --
> Marnen Laibow-Koserhttp://www.marnen.org
> mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org
> --
> Posted viahttp://www.ruby-forum.com/.