search for: pk_i

Displaying 1 result from an estimated 1 matches for "pk_i".

Did you mean: p_i
2012 Mar 29
0
Returning all fields indexed in solr using acts_as_solr
...on 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....