note 109404 deleted from function.strpos by danbrown
| From: | danbrown@php.net | Date: | Mon, 16 Jul 2012 15:18:03 +0000 |
| Subject: | note 109404 deleted from function.strpos by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189175@lists.php.net to get a copy of this message | ||
Note Submitter: aidenliu at qq dot com
----
require_once 'api/sphinxapi.php';
header("Content-type: text/html; charset=utf-8");
$sphinx = new SphinxClient();
$sphinx->SetServer('192.168.1.53',3333);
//$sphinx->SetMatchMode ( SPH_MATCH_EXTENDED2 );
$sphinx->SetSortMode(SPH_SORT_RELEVANCE);
$sphinx->SetLimits(0,600);
//$sphinx->SetGroupBy('author_username', SPH_GROUPBY_ATTR,'@weight desc');
//$sphinx->SetFilter('allow_uids',array(0,-1));
//$sphinx->SetFilterRange('author_uid',10,66666);
//$sphinx->SetSelect('*, IN(allow_cates,20) OR IN(allow_uids,0) AS mycond');
//$sphinx->SetFilter('mycond',array(1));
$result=$sphinx->query('1','gp_attachments_4_delta,gp_attachments_4');
//$result = $sphinx->RunQueries();
//echo $sphinx->GetLastWarning();
echo (json_encode($result));