File: D:/HostingSpaces/SBogers33/bbec.nl/app/config/packages/nqxcode/laravel-lucene-search/config.php
<?php
return [
/*
|--------------------------------------------------------------------------
| The configurations of search index.
|--------------------------------------------------------------------------
|
| The "path" is the path to Lucene search index.
|
| The "models" is the list of the descriptions for models. Each description
| must contains class of model and fields available for search indexing.
|
| For example, model's description can be like this:
|
| 'namespace\ModelClass' => [
| 'fields' => [
| 'name', 'description', // Fields for indexing.
| ]
| ]
|
*/
'index' => [
'path' => storage_path() . '/lucene-search/index',
'models' => [
'Komma\Faq\Models\FaqTranslation' =>[
'fields' => ['name', 'description'],
'boost' => true
],
'Komma\Search\Models\SearchPages' =>[
'fields' => [
'name',
'streamer',
'description'
],
],
// 'Komma\Pages\Models\PageTranslation' =>[
// 'fields' => ['name'],
// ],
// 'Komma\Blocks\Models\BlockTranslation' =>[
// 'fields' => ['name'],
// ],
// 'Komma\Posts\Models\PostTranslation' =>[
// 'fields' => ['name'],
// ],
'Komma\References\Models\Reference' =>[
'fields' => ['name'],
],
'Komma\References\Models\ReferenceTranslation' =>[
'fields' => ['streamer'],
],
'Komma\Calender\Models\CalenderTranslation' =>[
'fields' => ['name'],
],
// Add models descriptions here.
],
],
/*
|--------------------------------------------------------------------------
| ZendSearch token filters.
|--------------------------------------------------------------------------
|
| The "filters" is the list of ZendSearch token filters classes. Each class
| must implement the TokenFilterInterface interface. Stemming token filter
| for english and russian words is enabled by default. To disable it remove
| class 'Nqxcode\Stemming\TokenFilterEnRu' from token filters.
|
| The "stopwords" is the list of paths to files with stopwords. By default
| english and russian stopwords are used.
|
*/
'analyzer' => [
'filters' => [
'Nqxcode\Stemming\TokenFilterEnRu',
],
'stopwords' => Komma\Search\Stopwords::get(),
],
];