Returning all fields indexed in solr using acts_as_solr


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
hits=2250 status=0 QTime=0

Instead of:

I would like to have:

How can I achieve this using acts_as_solr? I have tried :include &
:fields options but they don’t work.

Thanks in advance.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs