Last active
December 30, 2015 00:49
-
-
Save feymartynov/7752059 to your computer and use it in GitHub Desktop.
Debug SphinxQL query generaed by ThinkingSphinx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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