Download the PHP package diezeel/laravel-scout-sphinx without Composer
On this page you can find all versions of the php package diezeel/laravel-scout-sphinx. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download diezeel/laravel-scout-sphinx
More information about diezeel/laravel-scout-sphinx
Files in diezeel/laravel-scout-sphinx
Package laravel-scout-sphinx
Short Description Laravel Scout Sphinx Driver
License MIT
Informations about the package laravel-scout-sphinx
Laravel Scout Sphinx Driver
THIS IS MY PERSONAL VERSION FOR MY PROJECT! DESCRIPTION MAYBE UPDATED LATER
Introduction
This package offers advanced functionality for searching and filtering data using Sphinx search engine for Laravel Scout.
Installation
Composer
Use the following command to install package via composer
Configuration
Publish the Scout configuration using the vendor:publish
Artisan command.
This command will publish the scout.php configuration file to your config directory. Edit this file to set 'sphinxsearch' as a Scout driver:
And add default Sphinx connection options
Override these variables in your .env file if need
Usage
- Add the
Laravel\Scout\Searchable
trait to the model you would like to make searchable. - Customize index name and searchable data for the model:
The basic search:
Please refer to the Scout documentation for additional information. You can run more complex queries on index using callback, set the where clause, orderBy or paginate, for example:
Note: Changes on Sphinx indexes are only allowed for RT (Real Time) indexes. If you have ones and you need to update/delete records please define
public $isRT = true;
model's property.
Credits
License
Licensed under the MIT license
All versions of laravel-scout-sphinx with dependencies
laravel/scout Version ^5.0|^6.0|^7.0
foolz/sphinxql-query-builder Version ^2.0