Hello,
I am new to Ruby and Rails.
I have an application that I would like to add searching. I am using
acts_as_solr for this.
To search I do:
@results = Model.find_by_solr(params[:q])
However results contain only the primary key and score. It doesn''t
contains other fields. The Solr log shows:
INFO: [] webapp=/solr path=/select
params={fl=pk_i,score&json.nl=map&qt=standard&wt=ruby&q=(new)+AND+(type_s:"Link")}
hits=2250 status=0 QTime=0
Instead of:
fl=pk_i,score
I would like to have:
fl=*,score
How can I achieve this using acts_as_solr? I have tried :include &
:fields options but they don''t work.
Thanks in advance.
Mugoma.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.