Download the PHP package xtodx/sphinxsearch without Composer
On this page you can find all versions of the php package xtodx/sphinxsearch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xtodx/sphinxsearch
More information about xtodx/sphinxsearch
Files in xtodx/sphinxsearch
Package sphinxsearch
Short Description Laravel package to query Sphinxsearch in Laravel 5
License Apache-2.0
Homepage http://github.com/sngrl/sphinxsearch
Informations about the package sphinxsearch
Sphinx Search for Laravel 5 - Custom build with snippets support
Simple Laravel 5 package for make queries to Sphinx Search. Inspired by scalia/sphinxsearch package for Laravel 4.
This package was created to import to the site packagist.org and allow installation through Composer (https://getcomposer.org/).
Installation
Require this package in your composer.json:
Run in your console composer update
command to pull down the latest version of Sphinx Search.
Or just run this in console:
After updating composer, add the ServiceProvider to the "providers" array in config/app.php:
You can add this line to the files, where you may use SphinxSearch:
Configuration
To use Sphinx Search, you need to configure your indexes and what model it should query. To do so, publish the configuration into your app.
This will create the file config/sphinxsearch.php
. Modify as needed the host and port, and configure the indexes, binding them to a table and id column.
Or disable the model querying to just get a list of result id's.
Usage
Basic query (raw sphinx results)
Basic query (with Eloquent)
Query another Sphinx index with limit and filters.
Query with match and sort type specified.
License
Sngrl Sphinx Search is open-sourced software licensed under the MIT license