Displaying 2 results from an estimated 2 matches for "rank_links".
Did you mean:
man_links
2007 Mar 31
3
Sorting issues, can anyone help me?
...dex =>
:untokenized_omit_norms, :term_vector => :no},
:posted_at_sort => {:index =>
:untokenized_omit_norms, :term_vector => :no}
}, :remote => true
belongs_to :blog
def rank_sort
begin
return self.blog.rank_links.to_i
rescue
return nil
end
end
def posted_at_sort
begin
return self.posted_at.to_i
rescue
return nil
end
end
end
But when I try to sort by :rank_sort or :posted_at_sort it didn''t work,
see:
>> h,r = Post.full_text_search("voltamos&...
2007 Mar 28
1
Questions on tokenized x untokenized and date sorting
...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/.