> acts_as_ferret({ :fields => {
>     :nom => {},
>     :description => {:boost => 0},
>     :logiciel_nom => {},
>     :logiciel_id => {},
>     :difficulte_id => {},
>     :systeme_nom => {},
>     :fai_nom => {},
>     :fai_id =>{},
>     :lversion_id=>{},
>     :site_nom => {},
>     :siteutilise_id => {},
>     :nom_for_sort => {:index => :untokenized},
>     :note => {:index => :untokenized},
>     :visions_count => {:index => :untokenized},
>     :nb_vu => {:index => :untokenized},
>     :date_sort => {:index => :untokenized}
>     }}, :analyzer => FrenchStemmingAnalyzer.new)

The syntax for the acts_as_ferret options are a bit odd, the above code 
should be the following, notice the extra {} brackets around the 
:analyzer => FrenchStemmingAnalyzer.new

acts_as_ferret({ :fields => {
    :nom => {},
    :description => {:boost => 0},
    :logiciel_nom => {},
    :logiciel_id => {},
    :difficulte_id => {},
    :systeme_nom => {},
    :fai_nom => {},
    :fai_id =>{},
    :lversion_id=>{},
    :site_nom => {},
    :siteutilise_id => {},
    :nom_for_sort => {:index => :untokenized},
    :note => {:index => :untokenized},
    :visions_count => {:index => :untokenized},
    :nb_vu => {:index => :untokenized},
    :date_sort => {:index => :untokenized}
    }}, { :analyzer => FrenchStemmingAnalyzer.new })
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to