laravel scout solr
v0.1.3
여기에서 문서를 읽을 수 있습니다.
문제 , 질문 또는 의견이 있으시면 언제든지 문제를 제출하십시오. 가능한 한 빨리 답장을 드리겠습니다.
Laravel Scout을 설치하십시오.
작곡가를 통해 설치하십시오
$ composer require jeroenherczeg/laravel-scout-solrscout_driver를 Solr로 설정하십시오.
// .env
...
SCOUT_DRIVER=solr
app.php 구성에 스카우트 서비스 제공 업체와 Solr 엔진 서비스 제공 업체를 추가해야합니다.
// config/app.php
'providers' => [
...
/*
* Package Service Providers...
*/
LaravelScoutScoutServiceProvider::class,
ScoutEnginesSolrSolrProvider::class,
],
Scout 구성 파일에 Solr 구성을 추가하십시오.
// config/scout.php
. . .
/*
|--------------------------------------------------------------------------
| Solr Configuration
|--------------------------------------------------------------------------
|
| Here you may configure your Solr settings. Solr is the popular, blazing
| -fast, open source enterprise search platform built on Apache Lucene .
| If necessary, you can override the configuration in your .env file.
|
*/
' solr ' => [
' host ' => env ( ' SOLR_HOST ' , ' 127.0.0.1 ' ),
' port ' => env ( ' SOLR_PORT ' , ' 8983 ' ),
' path ' => env ( ' SOLR_PATH ' , ' /solr/ ' ),
' core ' => env ( ' SOLR_CORE ' , ' scout ' ),
],이제 공식 문서에 설명 된대로 Laravel Scout을 사용할 수 있습니다.
Homestead Virtual Machine에 Solr을 설치할 수 있습니다.
포트 전달을 Homestead.yaml에 추가하십시오
// ~/Homestead/Homestead.yaml
...
ports:
- send: 18983
to: 8983
...
다음 설치 단계를 Homestead After.sh 스크립트에 추가하십시오.
// ~/Homestead/after.sh
#!/bin/sh
# If you would like to do some extra provisioning you may
# add any commands you wish to this file and they will
# be run after the Homestead machine is provisioned.
#
# If you have user-specific configurations you would like
# to apply, you may also create user-customizations.sh,
# which will be run after this script.
# Install Java Runtime Enviroment
sudo apt-get update
sudo apt-get install default-jre -y
# Install Solr 7.5
wget http://www-eu.apache.org/dist/lucene/solr/7.5.0/solr-7.5.0.tgz
tar zxf solr-7.5.0.tgz
cd solr-7.5.0
bin/solr create -c scout
bin/solr start
가상 머신을 재현해야합니다.
vagrant destroy && vagrant up
가상 머신이 설치되어 실행되면 http://127.0.0.1:18983/solr/#/에서 Solr Admin에 액세스 할 수 있습니다.
최근에 변경된 내용에 대한 자세한 내용은 ChangElog를 참조하십시오.
$ composer test 자세한 내용은 기여 및 code_of_conduct를 참조하십시오.
보안 관련 문제를 발견하면 문제 추적기를 사용하는 대신 [email protected]로 이메일을 보내주십시오.
MIT 라이센스 (MIT). 자세한 내용은 라이센스 파일을 참조하십시오.