[api] Fix for ThinkingSphinx 3.1