-
Notifications
You must be signed in to change notification settings - Fork 20
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 do not respect .solr_wrapper file #127
Comments
The rake tasks instead of doing I guess I can write my own local rake tasks that use But I'm happy to give back to solr_wrapper if this is a bug or desired improvement? It may be that few users are actually using the rake tasks; if you were, I think you'd want them to pick up your .solr_wrapper, no? I have confirmed that if I simply change |
Putting this in your Rakefile is one workaround:
It seems like there should be an easier and more obvious, documented and/or default solution. The logic for default config file paths and ERB processing are locked in Solr::Configuration, and you can not currently do |
Aha, here's a less ugly workaround:
(looks like #options is effectively the #to_h I was looking for) |
Perhaps the default default_instance_options should actually be |
It's worth noting that even if you do |
I have a
.solr_wrapper
file that specifies solr version 6.3.0.If I run
bundle exec solr_wrapper
, as expected I get:However, if I use the solr_wrapper rake tasks, (
require 'solr_wrapper/rake_task'
), and runbundle exec solr:start
, it seems to ignore the.solr_wrapper
file, I get:Is this a bug, should the rake task be using the
.solr_wrapper
config file too?If so, I am happy to prepare and submit a PR, feedback welcome.
The text was updated successfully, but these errors were encountered: