Rails configuration on Heroku via thinking_sphinx.yml

Dylan Fisher's Avatar

Dylan Fisher

17 Dec, 2016 12:48 AM

I have a thinking_sphinx.yml file that looks like this:

  max_matches: 10000
  charset_table: "0..9, a..z, _, A..Z->a..z, etc."
  max_matches: 10000
  charset_table: "0..9, a..z, _, A..Z->a..z, etc."
  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?


  1. Support Staff 1 Posted by Pat Allan on 17 Dec, 2016 04:25 AM

    Pat Allan's Avatar

    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?



  2. 2 Posted by Dylan Fisher on 17 Dec, 2016 05:12 AM

    Dylan Fisher's Avatar

    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

      version: '2.0.6'

    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.

  3. Support Staff 3 Posted by Pat Allan on 17 Dec, 2016 05:19 AM

    Pat Allan's Avatar

    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!



  4. 4 Posted by Dylan Fisher on 03 Jan, 2017 04:45 PM

    Dylan Fisher's Avatar

    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.

  5. Support Staff 5 Posted by Pat Allan on 03 Jan, 2017 11:26 PM

    Pat Allan's Avatar

    Great to hear :)

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? 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