Sunspot is a DSL that exposes the best of the solr search API to the Ruby runtime.
Questions tagged [sunspot-solr]
301 questions
4
votes
1 answer
sunspot_solr - NoMethodError (undefined method `result=' for nil:NilClass)
I have a problem related to the use of sunspot_solr. I have an application that performs some searches using this gem. There are 5 models that has this feature, only 1 of them is showing an error in
@search.results
NoMethodError (undefined method…

Vinícius Gregório
- 41
- 3
3
votes
2 answers
Sunspot unicode search working locally but not in production
I have my app working with Sunspot Solr locally, supporting unicode
with no issues. In production however, with Heroku and Websolr, all
unicode queries return zero results. I have confirmed with Websolr
support I can query directly against their…

Bashar Abdullah
- 1,545
- 1
- 16
- 27
3
votes
1 answer
Sunspot Solr doesn't return any result but no error
Environment: Rails 3.0.1 Ruby 1.8.7 MySQL 5.5.16 Community server...Jdk 1.6
gem 'sunspot_rails'
gem 'sunspot_solr'
Model:
class Item < ActiveRecord::Base
searchable do
text :title,:description
end
end
Controller:
def search
p…

crazycrv
- 2,395
- 2
- 19
- 20
3
votes
1 answer
Solr Sunspot issue with rails 5 RSolr::Error::ConnectionRefused: Connection refused
Recently we moved an application from rails 4 to rails 5.1.6
The issue which we are facing is that on starting the sunspot it shows as sunspot has started. But on reindex or on doing any database action, we are getting connection refused…

Bharat Hegde
- 31
- 5
3
votes
0 answers
How to improve Typeahead performance by cancelling intermediate requests?
I'm using the gems sunspot_solr, sunspot_rails and twitter-typeahead-rails as outlined in this tutorial. Everything is integrated and it's working well.
However, I notice that if the user pauses while typing, multiple sequential requests are made,…

Stephen Lead
- 1,904
- 5
- 23
- 46
3
votes
0 answers
Solr sunspot search on models having fields with same name not working
I have two models Posts and Comment both have title,description fields for which i have set text,ngram fieldtypes and fields with text type give me results but fields with ngram type does not give me any results
my models are like
class Post <…

ashishmohite
- 1,120
- 6
- 14
3
votes
0 answers
My solr suggestions doesn't display results
I updated my solr to 4.9.1 (I want to implement solr Suggester) and updated its solrconfig.xml
mySuggester

Ardian
- 155
- 2
- 11
3
votes
1 answer
How to setup Solr Cloud with two search servers?
Hi I'm developing rails project with sunspot solr and configuring Solr Cloud.
My environment: rails 3.2.1, ruby 2.1.2, sunspot 2.1.0, Solr 4.1.6.
Why SolrCloud: I need more stable system - oftentimes search server goes on maintenance and web…

bmalets
- 3,207
- 7
- 35
- 64
3
votes
2 answers
rails sunspot not returning correct results
I have a model Foo with an attribute named listed.
Now I am running a simple sunspot(solr) query
foos = Foo.search do
with :listed, true
end.results
It is returning all foos that have listed = true except two of them.
I have already tried…

Anshul Mengi
- 311
- 1
- 8
3
votes
2 answers
Solr (sunspot) not finding partial word match when suffix included
I'm implementing solr into a Rails app, specifically pertaining to ingredient searches. If I do a partial word match on a simple noun like "beef" or "chicken", I can type in any number of letters from 1 to the full string, and it finds ingredients…

Matt Huggins
- 81,398
- 36
- 149
- 218
3
votes
1 answer
Error using progress bar: Max must be a positive integer
Whenever I reindex a with solr, I get the following error
$ RAILS_ENV=development rake sunspot:solr:reindex
Error using progress bar: Max must be a positive integer
How do I fix this?

Teej
- 12,764
- 9
- 72
- 93
3
votes
1 answer
Sunspot solr: boost scalar fields
I am scoping by multiple scalar fields and I am hoping to push the scoped results to the top of the search results without excluding results that do not meet the criteria for favorite authors.
Articles have and belong to many authors
This doesn't…

Brooks
- 286
- 1
- 9
3
votes
1 answer
Solr not reindexing correctly - Sunspot Solr with Solr 4
I have a similar issue that Solr with Rails - rake sunspot:reindex is not working.
I have these in my Gemfile:
gem 'sunspot_solr', github: 'sunspot/sunspot', branch: 'master'
gem 'sunspot_rails', github: 'sunspot/sunspot', branch:…

sites
- 21,417
- 17
- 87
- 146
3
votes
1 answer
Rails sunspot-solr - words with hyphen
I'm using the sunspot_rails gem and everything is working perfect so far but: I'm not getting any search results for words with a hyphen.
Example:
The string "tron" returns a lot of results(the word mentioned in all articles is e-tron)
The string…

Evo_x
- 2,997
- 5
- 24
- 40
3
votes
2 answers
Sunspot Solr partial search working in development but not in production after deploying
I am using sunspot solr for free text searching. I am trying to search trader from trader model. Here is the searchable block
searchable do
text :name
text :postcode
text :phone
text :phone_alt
text :phone_mobile
end
Here is the…

Quazi Marufur Rahman
- 2,603
- 5
- 33
- 51