I'm using sphinx 2.1.4
I'm searching with sphinx with following methods,
First::
Using sphinxql through PDO in php using this query
SELECT * FROM $indexes WHERE MATCH(:match) LIMIT 0,10 OPTION ranker=bm25
Now when I do the same thing with sphinxapi.php which comes along with installation, the ranking mode seems to work like SPH_RANK_MATCHANY only. Changing ranking mode through api doesn't work, it gives the same result.
Here is the api implementation::
$conn = new SphinxClient();
$conn->SetServer("192.168.x.x", 9312);
$conn->SetMatchMode(SPH_MATCH_ANY);
$conn->SetRankingMode(SPH_RANK_BM25);
$conn->SetArrayResult(true);
$rows = $conn->Query('query', 'test1');
The query methods seems to work but not the api one. I checked it several times. Is there any bug or I'm doing something wrong ?