[api] Fix for ThinkingSphinx 3.1
Merge pull request #4 from ancorgs/update_ts

[api] Fix for ThinkingSphinx 3.1