algolia/algoliasearch-magento — pull request #33 by sergeykalenyuk (2014-08-15 08:32:01+00:00)
Title: Skin not existing queries.

A few times (should be a native Magento bug) not existing queries submitted to prepare search results so added sanity check to prevent FK errors. Native Magento does not generate the FK exception but saves query into "catalogsearch_query" table with no results so no reason to keep unsaved queries at all.