Comments (6)
Can you update to 1.3.0?
What models are searchable? Can you pare down which model is causing the error by running sunspot:reindex
on individual classes (see syntax below)
rake sunspot:reindex[Model]
from sunspot.
Hi! Upgraded to 1.3.0, and Offers is my only searchable model:
$ rake sunspot:reindex[Offer] --trace
** Invoke sunspot:reindex (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute sunspot:reindex
Skipping progress bar: for progress reporting, add gem 'progress_bar' to your Gemfile
rake aborted!
undefined method `solr_reindex' for #<Class:0x007ffd6fbf1818>
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.1.3/lib/active_record/base.rb:1088:in `method_missing'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/sunspot_rails-1.3.0/lib/sunspot/rails/tasks.rb:54:in `block (3 levels) in <top (required)>'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/sunspot-1.3.0/lib/sunspot/class_set.rb:16:in `each'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/sunspot-1.3.0/lib/sunspot/class_set.rb:16:in `each'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/sunspot_rails-1.3.0/lib/sunspot/rails/tasks.rb:53:in `block (2 levels) in <top (required)>'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/task.rb:205:in `call'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/task.rb:205:in `block in execute'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/task.rb:200:in `each'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/task.rb:200:in `execute'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/tute/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/task.rb:144:in `invoke'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/application.rb:114:in `invoke_task'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/application.rb:93:in `block in top_level'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/application.rb:93:in `each'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/application.rb:93:in `top_level'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/application.rb:66:in `block in run'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/application.rb:131:in `standard_exception_handling'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/lib/rake/application.rb:63:in `run'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.3.beta.1/bin/rake:37:in `<top (required)>'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/bin/rake:19:in `load'
/Users/tute/.rvm/gems/ruby-1.9.3-p0/bin/rake:19:in `<main>'
Tasks: TOP => sunspot:reindex
from sunspot.
Can you paste the Offer
class with its searchable
block?
Is there any other class or module named Offer
in your app?
from sunspot.
Hi! This is the only Offer class or Module in my application. I have this block in my models/offer.rb file:
Sunspot.setup(Offer) do
string :id, stored: true
# ...
end
I may gist all the file if you need it.
Thanks in advance!
from sunspot.
Ah, if you're using Rails, you should use a searchable
class method instead.
class Offer < ActiveRecord::Base
searchable do
string :id, stored: true
# ...
end
end
from sunspot.
That did the trick, thank you very much! :-)
from sunspot.
Related Issues (20)
- Fulltext and Scalar field search is not working with any_of
- sunspot_rails gem bump? HOT 6
- Can't make it work with Solr 8 with docker HOT 1
- Index-time Boosts not supported by Lucene 7 and Solr 8 anymore
- Sunspot RSolr Reindex Error ConnectionRefused After reindexing 99.57% of the model how to continue from where it failed
- Score boost does not work with join fields
- Retry5xxSessionProxy#rescued_exception unused
- DEPRECATION: Rsolr.new/connect option 'read_timeout' is deprecated and will be removed in Rsolr 3.
- Not able to reindexing restored couchdb HOT 1
- Search by exact match on text field is not working as expected HOT 1
- Can Opendistro Elasticsearch be used in place of Solr? HOT 1
- Psych::BadAlias in Ruby 3.1 configuration
- NoMethodError on Ruby 3.2 for `File.exists?` HOT 8
- sort param could not be parsed as a query, and is not a field that exists in the index: geodist(location_ll,32.8563846,-117.2029363)
- How to stub results?
- Is this available with Solr 9? HOT 2
- Rails 7.1 deprecation warning HOT 1
- Discussion: Is this project dead? (aka: is this now a joke?) HOT 3
- `solr_search` search modular models is not accurate HOT 2
- The stack size specified is too small, Specify at least 384k
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sunspot.