I am using sphinx and in most normal use queries it returns results as expected. One query however refuses to do so. I am using the following query code:
$cl = new SphinxClient();
$cl->SetServer( "localhost", 9312 );
$cl->SetMatchMode( SPH_MATCH_EXTENDED );
$cl->SetRankingMode ( SPH_RANK_SPH04 );
$q = '"' . $cl->EscapeString($_REQUEST['keyword']) . ' @provider 2"/1';
$result = $cl->Query($q, 'mainIndex' );
The query ends up becoming:
"air compressor @provider 2"/1
Can anyone please explain why this query still returns results from providers with different IDs than '2'?