Gents, does this definition will allow me to search inside title,
sub_title and url and sort by score, rank_sort, last_updated_at_sort ?

  acts_as_ferret  :fields => { :title => {:boost => 2, :store => :yes},
                              :sub_title => {:store => :yes},
                              :url => {:store => :yes},
                              :rank_sort => {:index => :untokenized},
                              :last_updated_at_sort => {:index =>
:untokenized_omit_norms, :term_vector => :no}},
                  :remote => true

  def rank_sort
    begin
      return self.rank_links.to_i
    rescue
      return nil
    end
  end

  def last_updated_at_sort
    begin
      self.last_updated_at.to_i
    rescue
      return nil
    end
  end

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to