Rails configuration on Heroku via thinking_sphinx.yml
I have a thinking_sphinx.yml file that looks like this:
development:
max_matches: 10000
charset_table: "0..9, a..z, _, A..Z->a..z, etc."
test:
max_matches: 10000
charset_table: "0..9, a..z, _, A..Z->a..z, etc."
production:
max_matches: 10000
charset_table: "0..9, a..z, _, A..Z->a..z, etc."
I tried running heroku run bundle exec flying-sphinx
configure
followed by heroku run rake
fs:rebuild
but the charset_table changes I'm trying to make
don't seem to be applying on heroku.
Locally these charset_table changes work (I'm using your thinking-sphinx gem) but on Heroku I can't tell if the configuration is being applied. Do I need to do anything else to set configuration on Heroku?
Is there a way to view the configuration file that flying-sphinx is using?
Thanks!
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Pat Allan on 17 Dec, 2016 04:25 AM
Hi Dylan
I’m afraid there’s no way currently to view the stored configuration - but if you can let me know the app name I’ll check the file to ensure the charset_table values are what’s expected.
One thing that might be related is the version of Sphinx you’re using - what do you have locally? And are you also setting a version in the thinking_sphinx.yml file as well for the production environment?
Cheers,
—
Pat
2 Posted by Dylan Fisher on 17 Dec, 2016 05:12 AM
The app name is printedmatter-linkedbyair
I'm using Sphinx 2.2.11. I did not specify the version in the thinking_sphinx.yml.
I see in your documentation for Ruby that you should specify
I guess I'll try the latest version,
2.2.3
and let you know how that goes.What version of sphinx does flying-sphinx use by default?
Thanks for your help.
Support Staff 3 Posted by Pat Allan on 17 Dec, 2016 05:19 AM
Hi Dylan,
Just checked on the relevant server, and there’s certainly an extensive charset_table setting persisting in your configuration, so I’m guessing that’s working correctly. The default Sphinx version is 2.1.4, but do give 2.2.3 a spin and see how that goes. I should also look into getting something more recent onto all the servers as well - I’ll see if I can wrangle that over the coming weeks.
That said, if 2.2.3 doesn’t help, do let me know!
Cheers,
—
Pat
4 Posted by Dylan Fisher on 03 Jan, 2017 04:45 PM
Hi Pat, just wanted to follow up and let you know that specifying version 2.2.3 did fix the problem.
Thanks for your quick support.
Support Staff 5 Posted by Pat Allan on 03 Jan, 2017 11:26 PM
Great to hear :)