Fix broken API issue with Sphinx search enabled