Re: Re: Command line ferret engine

Hemant Bhargava
2010-01-21T10:37:13Z

Hi,

Is there any problem in these defaults while searching with ferret?

{:reindex_batch_size=>1000, :registered_models=>[Summary(id: integer,
class_id: integer, class_summary: text, class_primary_field: string,
created_at: datetime, updated_at: datetime)],
:ferret_fields=>{:class_primary_field=>{:highlight=>:yes,
:via=>:class_primary_field, :boost=>5, :store=>:no, :index=>:yes,
:term_vector=>:with_positions_offsets},
:class_summary=>{:highlight=>:yes, :via=>:class_summary, :boost=>0,
:store=>:no, :index=>:yes, :term_vector=>:with_positions_offsets}},
:user_default_field=>nil, :enabled=>true,
:fields=>{:class_primary_field=>{:boost=>5},
:class_summary=>{:boost=>0}}, :mysql_fast_batches=>true,
:index_dir=>"/scratch/ABC/Sandboxes/abc/index/development/summary",
:raise_drb_errors=>false,
:index_base_dir=>"/scratch/ABC/Sandboxes/abc/index/development/summary",
:name=>:summary, :single_index=>false,
:ferret=>{:create_if_missing=>true,
:default_field=>[:class_primary_field, :class_summary], :key=>:key,
:analyzer=>#<Ferret::Analysis::StandardAnalyzer:0xb76d28a8>,
:auto_flush=>true, :or_default=>false,
:path=>"/scratch/ABC/Sandboxes/abc/index/development/summary",
:handle_parse_errors=>true}}


Hemant Bhargava wrote:
> Yeah Colin.. You are right. there should not be any difference in
> searching from browser or from test.. But still the problem exists. Also
> i executed rake db:test:load to take all the development data into test
> database..