Thinking sphinx and passing conditions for joins or includes to search

http://github.com/phegaro/thinking-sphinx

Since Sphinx only returns ids of items that match the search query, thinking sphinx actually does the work of running a find and retrieving all the records by using a find method and passing all the arguments you sent to the search method to the find query. It passes things like :include and :joins etc but it does not pass conditions so i created a new options called :sql_conditions and  you can pass the normal sql conditions you might want to pass to have joins be filtered etc. Hope it helps and good luck

Be Sociable, Share!
This entry was posted in tech, tools. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Warning: Invalid argument supplied for foreach() in /var/www/l8ent/wp-content/plugins/mention-comments-authors/mention-comments-authors.php on line 106