Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 5, 2023. It is now read-only.

Elastic Driver for Laravel Scout

License

NotificationsYou must be signed in to change notification settings

ErickTamayo/laravel-scout-elastic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable VersionTotal DownloadsLicenseBuild Status

Archived

I haven't had the time to dedicate work to this repo and I don't plan to do so in the future.

This package provides aElasticsearch driver for Laravel Scout.

Contents

Installation

You can install the package via composer:

composer require tamayo/laravel-scout-elastic

Laravel will automatically register the driver service provider.

Install elasticsearch-php client

For use this library we recomend using the latest version at this time(^7.9)

composer require elasticsearch/elasticsearch

Setting up Elasticsearch configuration

After you've published the Laravel Scout package configuration, you need to set your driver toelasticsearch and add its configuration:

// config/scout.php...// Set your driver to elasticsearch'driver' =>env('SCOUT_DRIVER','elasticsearch'),.../*    |--------------------------------------------------------------------------    | Elasticsearch Configuration    |--------------------------------------------------------------------------    |    | Here you may configure your Elasticsearch settings.    |    */'elasticsearch' => ['hosts' => [env('ELASTICSEARCH_HOST','localhost'),// [//     'host'   => env('ELASTICSEARCH_HOST', 'localhost'),//     'port'   => env('ELASTICSEARCH_PORT', '9200'),//     'scheme' => env('ELASTICSEARCH_SCHEME', 'https'),//     'path'   => env('ELASTICSEARCH_PATH', '/elastic'),//     'user'   => env('ELASTICSEARCH_USER', 'username'),//     'pass'   => env('ELASTICSEARCH_PASS', 'password'),// ]        ],    ]...

For host configuration you can refer to the officialElasticsearch documentation

Usage

Now you can use Laravel Scout as described in theLaravel Scout official documentation

Limitations

Identifying UsersCurrrently user identification is not supported.

Credits

License

The MIT License (MIT).

About

Elastic Driver for Laravel Scout

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors17

Languages


[8]ページ先頭

©2009-2025 Movatter.jp