one more question:
in the Model
acts_as_ferret({ :fields => {:username => {:store => :yes, :boost =>
30}, :subject => {:store => :yes, :boost => 20}, :body => {:store =>
:yes, :boost => 10}}, :remote => true }, { :analyzer =>
Ferret::Analysis::RegExpAnalyzer.new(/./, false) })
def username
return self.user.login
end
search as:
@total, @topics = Topic.full_text_search(params[:searchTerms], {:page =>
(params[:page]||1)}, {:conditions => @conditions})
if i input a query term to search, i will got the result: @total = 14,
@topics.length = 12
but when i input the user login to search the topics posted by the user,
it got:
@total = 14, @topics.length = 0. It just display the paginate things,
but none of the result topic displayed!
I'm totally lost!
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk