search for: find_by_solr

Displaying 4 results from an estimated 4 matches for "find_by_solr".

2011 Sep 09
2
acst_as_solr error
hi, i am using https://github.com/mattmatt/acts_as_solr it shows the following error "undefined method ''each'' for " for this results = Employee.find_by_solr(@id) results.each do |emp| puts emp.id end where plugin does not contains "each" method in acts_as_solr/libs/ search_results.rb so for me each is not working with ActsAsSolr::SearchResults ----------------------------------------------------------------- next i tried with https://gith...
2011 Sep 08
8
acts_as_solr problem ActsAsSolr::SearchResults:
hi, i am using acts_as_solr plugin when i tried with search by def search puts "#####################" # ids = params[:name] @id = params[:query] @emp = Employee.find_by_solr(@id) puts "------------------------------#{@emp}" respond_to do |format| format.html{render :action => ''search''} format.xml end end in my model i gave acts_as_solr :fields => [ :name ] when i tried with search puts "----------...
2010 Aug 21
0
problem with date range search using acts as solr
Hi, i am struck up with solr''s date range search. I have used acts_as_solr plugin in my rails project. My model looks like acts_as_solr :fields => [:title,{:createdate=>:date}] No problem,if i used following date range search format => model.find_by_solr("createdate:[NOW-1DAY TO NOW+1DAY"] if i used following format => model.find_by_solr("createdate:[2010-07-02T00:00:00.000Z TO 2010-08-02T00:00:00.000Z]") i got error like "RuntimeError: There was a problem executing your search: Couldn''t...
2012 Mar 29
0
Returning all fields indexed in solr using acts_as_solr
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 QTi...