[Code Cleanup/Search/Sphinx] Minor fixes to the Sphinx search implementation for older versions of Sphinx.