Questions tagged [sunspot-rails]

Sunspot Rails Plugin

Sunspot Rails is a Rails plugin that provides drop-in integration of the Sunspot[http://outoftime.github.com/sunspot] Solr search library with Rails

411 questions
0
votes
2 answers

No Errors but no speed increase using sunspot gems

I ran speed tests comparing the results between the traditional Post.all(...) and Sunspot's Post.search(...) against a table with about 3000 records. In both cases, it takes 12 seconds to load. Everything seems to work, execept any improvement in…
iamtoc
  • 1,569
  • 4
  • 17
  • 24
0
votes
1 answer

Delayed Indexing in SunSpot solr still make Delete request on record save

The delayed indexing is working fine but on record save it sends some delete request to websolr... here in the log it shows SOLR Request (14.3ms) [ path=# parameters={data: Message 547488, headers: {"Content-Type"=>"text/xml"}, method: post, params:…
Gul
  • 1,757
  • 2
  • 15
  • 26
-1
votes
1 answer

Filter association in search results using rails sunspot

I have this model class Subject has_many: contents has_many: titles, :through => :contents searchable do text :titles, :default_boost => 5, :stored => true do my_titles = titles.map { |title| title.try(:name) } if…
wiwit
  • 73
  • 1
  • 7
  • 26
-1
votes
1 answer

Can't start Solr-Server after installation: bundle exec rake sunspot:solr:start rake aborted! undefined method `map' for :needs:Symbol

After I installed sunspot_rails I'm getting this error "undefined method `map' for :needs:Symbol" if I run bundle exec rake sunspot:solr:start I don't know how to pinpoint this error.. If you have any suggestions please let me know Error: …
-1
votes
1 answer

Ruby difference between statements

I'm using Solr to search for a list of companies. when I try to filter Works companies = [] current_user.cached_company.cached_companies.each do |company| companies << company.id end Doesn't Work companies = [] companies <<…
kobaltz
  • 6,980
  • 1
  • 35
  • 52
-1
votes
1 answer

Rails Sunspot Solr search is not working when there is less than 3 chars

When I search for "beer" then I got results, but when I search for "bee" i am not getting any results. I can not search for any word which is shorter than 4 chars. Is there a way to make this possible?!
Ivan Bajalovic
  • 780
  • 1
  • 9
  • 20
1 2 3
27
28