Skip to content

Instantly share code, notes, and snippets.

@feymartynov
Last active December 30, 2015 00:49
Show Gist options
  • Save feymartynov/7752059 to your computer and use it in GitHub Desktop.
Save feymartynov/7752059 to your computer and use it in GitHub Desktop.
Debug SphinxQL query generaed by ThinkingSphinx
s = Product.search(query, options)
s.populate # => ThinkingSphinx::SyntaxError: sphinxql: syntax error, blah, blah...
# Let's see the SphinxQL query to find out what's wrong
s.context[:sphinxql].to_sql # => SELECT * FROM `product_core` WHERE ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment