Giter Site home page Giter Site logo

Comments (8)

fabn avatar fabn commented on June 24, 2024

I'm also having this issue with rc4

from sunspot.

fabn avatar fabn commented on June 24, 2024

Partially solved by installing the sunspot_solr gem, however rake tasks doesn't work anymore. Had to use sunspot-solr start command.

With that I'm able to index and search for models, however can't run the reindex task because of this error:

> rake sunspot:reindex
Skipping progress bar - no such file to load -- progress_bar

I've used Model.find_each { |m| m.index }, but I think this not efficient while still useful for a quick try.

from sunspot.

alindeman avatar alindeman commented on June 24, 2024

Thanks for the report. I'll look into this soon. Let me know if you come across any more details.

from sunspot.

alindeman avatar alindeman commented on June 24, 2024

Believe I've fixed this, but can you folks test it?

Change your Gemfile for sunspot_rails to this:

gem 'sunspot_rails', :git => 'git://github.com/alindeman/sunspot.git', :branch => 'solr_rake_tasks'

Run bundle update sunspot_rails and let me know if the tasks work? If so, I'll merge!

from sunspot.

alindeman avatar alindeman commented on June 24, 2024

@fabn, can you file a separate issue about sunspot:reindex?

from sunspot.

alindeman avatar alindeman commented on June 24, 2024

Going to merge this in and close. Please reopen if it continues being an issue.

from sunspot.

fabn avatar fabn commented on June 24, 2024

Sorry for being late. Your commit has solved the issue in my case, thanks.

Just a notice, now when using rake sunspot:solr:start the pid file sunspot-solr.pid is created in the root directory of my rails project. Shouldn't it be in tmp/pids?

Furthermore I've noticed that the progress_bar issue was solved in this commit so it's not an issue anymore, even if the message is not so clear. Maybe something like this would be better:

You don't have the progress_bar gem in your bundle, add it with "gem 'progress_bar'" in your Gemfile, to show progress in realtime
Indexing in progress...

from sunspot.

alindeman avatar alindeman commented on June 24, 2024

I haven't fully reviewed the code to move sunspot_solr to a gem. I'll look into the *.pid issue.

Totally agree on the progress_bar message: fixed in bbb0d7b.

from sunspot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.