Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rake tasks are not included #7

Open
aq1018 opened this issue Feb 16, 2011 · 1 comment
Open

rake tasks are not included #7

aq1018 opened this issue Feb 16, 2011 · 1 comment

Comments

@aq1018
Copy link

aq1018 commented Feb 16, 2011

There are a few issues:

1). Rake tasks are not automatically included.
2). When I manually include it, the sunspot:reindex task is not working

I made some changes, but I forked another fork instead of this one, and sent the pull request to the fork. I'm sorry about the inconvenience, but could you look at these changes?

https://github.com/iamveen/sunspot_mongoid/pull/1

Will you pull?

Best,

Aaron Qian

@sylvainsf
Copy link

FYI if you explicitly require the rake tasks:
require 'sunspot_rails'

Then you can call reindex with:
rake sunspot:reindex[false]

You may need to escape [] if you're using zsh. The false param turns off batching which relies on the ActiveRecord method find_in_batches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants