similar to: acts_as_solr problem ActsAsSolr::SearchResults:

Displaying 20 results from an estimated 700 matches similar to: "acts_as_solr problem ActsAsSolr::SearchResults:"

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
2010 Sep 16
6
acts_as_solr plugin fate?
Just wanted to see if I was using the latest acts_as_solr plugin, but the URL <http://acts_as_solr.railsfreaks.com/> takes me to a GoDaddy domain parking page. Anyone know what''s happened to railsfreaks, and more particularly this plugin? -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- You received this
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
2011 Aug 31
9
undefined method `model_name' for NilClass:Class in rails 3.0.0
Hi, i got search which shows following error ActionView::Template::Error (undefined method `model_name'' for NilClass:Class): 1: <%= form_for(@employee) do |e| %> 2: EMP ID<%= e.text_field :id %><br> 3: <%= e.submit ''search'', :controller => ''employees'', :action => ''search1'' %>
2011 Sep 09
0
Mysql::Error error in acts as solr plugin
hi, i am using acts_as_solr in plugin, in my table i got three columns emp_id, name, experience. when i tried to run my application i got following error "Mysql::Error: Unknown column ''employees.id'' in ''where clause'': SELECT `employees`.* FROM `employees` WHERE (employees.id in (NULL))" in my table i dont have column "id", but
2007 May 31
0
Question on boosting and pagination with acts_as_solr
I am currently working with Solr and acts_as_solr. I updated acts_as_solr to include boost value in field attributes and for some reason they dont seem to have an impact on result scores. On Pagination with acts as solr, is there a way to find out the total number of entries u get with the search? Thanks for your response. cheers -- Posted via http://www.ruby-forum.com/.
2008 Feb 06
1
RSpec 1.1.3 + ZenTest 3.9.1 + Rails 1.2.6 do NOT ignore folders ^vendor/*
Hi, I just updated to the latest RSpec 1.1.3 + ZenTest 3.9.1. I also have rspec 1.1.3 installed as a gem When starting autotest with -v option, there is a lot of noise because autotest does not ignore the vendor folder, the migrations, etc ...: Dunno! vendor/plugins/acts_as_solr/solr/lib/jetty-util-6.1.3.jar Dunno!
2011 Sep 14
5
rjs error TypeError: element.getElementsByTagName is not a function in rails 3+jquery
hi, i am using rails 3.0.10 i am trying with sample application for searching data from table and updating my search.html.erb file is <%= form_for (@employee) do |s|% <div id ="search_details"> <%= s.text_field :name%> <%= s.text_field :emp_id, :onfocus => ''sal(document.getElementById(''employee_name'').value);''%>
2006 Jun 29
13
find_by_contents not returning SearchResults?
The acts_as_ferret documentation says find_by_content returns an instance of SearchResults, but I see this error when I try to use the results. undefined method `total_hits'' for []:Array Here is the link to the documentation: http://projects.jkraemer.net/acts_as_ferret/rdoc/classes/FerretMixin/Acts/ARFerret/ClassMethods.html#M000010 But here is the actual code: result =
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 =>
2008 Apr 23
0
Flare plugin (with Ruby Solr library and acts_as_solr plugin)
Hello, I''m looking for informations about this plugin (Flare). http://wiki.apache.org/solr/Flare/ Is it a final plugin? Can we use it on final production application? Have you some documentation / tutorial about it? I don''t find anything ! I would be grateful to your help that you bring to me. Vincent --~--~---------~--~----~------------~-------~--~----~ You received this
2006 Jul 07
1
querying the SearchResults instance
Hi how do you search against the results returned by find_by_contents using ferret? i.e. how do you "search within these results"? This is an acts_as_ferret question again... thanks in advance.. cheers caspar -- Posted via http://www.ruby-forum.com/.
2006 Jan 31
1
retrieving attributes of searchresults
i use the perl interface of Search::Xapian to index documents, now i got metadata i store with the index like title, date, author, .. and i wonder how to retrieve them from the index again without pulling them from the database. i am pretty sure this is a stupid question and that the answer is obvious i dont seem to be able to find it. regards m
2007 Jan 13
5
Problems using acts_as_ferret
Hi all, I''m trying to use acts_as_ferret and have run into a brick wall. My model is Page My controller is Pages_controller. When in console, I can search for contents, and find results. For example, when I search for "spam" it "finds" 7 results. => #<FerretMixin::Acts::ARFerret::SearchResults:0x2693934 @total_hits=7, @results=[]> you can do a
2007 Apr 30
1
Can''t search fields with space
Hi, I have a user model that has a city field which is searchable using acts_as_ferret. But I can''t get it to return any result whether I use :city => {:store => :no, :index => :untokenized}, or :city => {:store => :no} in my User model''s acts_as_ferret option >>> User.find_by_contents("city:(cal poly)") =>
2006 Apr 19
4
RJS replace_html auto-closing tags
I''m using the following RJS template to spit out a div containing a list of projects: page.replace_html ''results'', ''<div>'' @projects.each do |p| page.insert_html :bottom, ''results'', p.name + "<br/>" end page.insert_html :bottom, ''searchresults'', ''</div>'' page.show
2007 May 02
6
Rewarding exact matches
Is there a way I can get ferret to give the highest ranking to an exact term match? The problem I have right now is that I am searching both title and body fields, so even if I boost the title field, if the body has more instances of the query, then it gets pushed up in rank. I would like for ferret to put exact matches (of the title field) at the very top of the pile, so if I do a
2010 May 06
1
question about rolling regressions
Hi All, I am using R 2.11.0 on a Ubuntu machine. I have a time series data set and want to run rolling regressions with it. Any suggestions would be useful. Here are the details: (1) I convert relevant variables into time series objects and compute first differences: vad <- ts(data$ALLGVA/data$GDPDEF, start=1948, frequency=1) emp <- ts(data$ALLEMP, start=1948, frequency=1) vad.dif1 <-
2008 Dec 24
1
Need help : Rails app unable to connect to Solr server
Hi, I am trying to integrate solr in ruby on rails application.For that i am using the plugin acts_as_solr and gem solr-ruby. My solr server starts successfully with command $ rake solr:start But when I try to add data from $ script/console , it says that it cannot connect to solr server at the corresponding port.Same is the result if i try the browser to link to http://localhost:8982/solr
2011 Sep 21
5
problem with submit button in rails 3
hi, i am using <%= s.submit ''Product save'' %> when i click it, following error appears " Routing Error uninitialized constant ProductsController" could any one provide me solution ? thanks, -pab -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send