PHPでのsphinx検索
363 ワード
<?php
// sphinxAPI
include 'sphinxapi.php';
$sc = new SphinxClient();
// sphinx
$sc->setServer('localhost','9312');
// test2 rest
$array = $sc->query('rest', 'test2');
print_r($array);