rkmax / sphinx-client
SphinxClient (SphinxAPI) for PHP5.3 and above to be used with SphinxSearch
Installs: 10 228
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Open Issues: 0
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-11-09 18:38:00 UTC
README
Autoload.php
$loader->registerPrefixes(array(
// ...
'Sphinx' => __DIR__.'/../vendor/sphinx-client',
));
config.yml
services:
buscador:
class: Sphinx\SphinxClient
calls:
- [setArrayResult, [true]]
- [setLimits, [0, 20, 1000]]
*Action.php
$palabras = 'hola que tal';
$search = $this->get('buscador');
$results = $search->Query($palabras, 'nombre_index');
Source: Taken from the sf2 mailing list with some minor fixes
Para mayor información: sphinxsearch