Elasticsearch config (mappings + settings) builder for laravel.
triadev/laravel-elasticsearch-config-builder is a Laravel package for elasticsearch config (mappings + settings) builder for laravel..
It currently has 0 GitHub stars and 7 downloads on Packagist (latest version v1.0.0).
Install it with composer require triadev/laravel-elasticsearch-config-builder.
Discover more Laravel packages by triadev
or browse all Laravel packages to compare alternatives.
Last updated
Elasticsearch config (mappings + settings) builder for laravel.
composer require triadev/laravel-elasticsearch-config-builder
The package is registered through the package discovery of laravel and Composer.
https://laravel.com/docs/5.6/packages
| Key | Value | Description | |:-------------:|:-------------:|:-----:| | filePath | STRING | File path for elasticsearch configs | | validation.whitelistFilter | ARRAY | --- | | indices | ARRAY | [INDEX => VERSION, ...] |
Directory (i.e. 1.0.0) with elasticsearch config files.
return [
TYPE => [
'properties' => [
FIELD => [
'type' => TYPE
],
...
],
...
],
...
];
return [
'refresh_interval' => "30s",
'analysis' => [
'filter' => [
'germanStop' => [
'type' => 'stop',
'stopwords' => '_german_'
]
],
'analyzer' => [
'exampleAnalyzer' => [
'type' => 'custom',
'tokenizer' => 'standard',
'filter' => [
'germanStop'
]
]
]
]
];
| Key | Value | Description | |:-------------:|:-------------:|:-----:| | type | STRING | field or index | | locales | ARRAY | deDE, enUS, ... | | fields | ARRAY | fields to translation | | configPerLocale | ARRAY | --- |
return [
'type' => 'field',
'locales' => [
'enUS'
],
'fields' => [
'example.properties.title'
],
'configPerLocale' => [
'example.properties.title' => [
'enUS' => [
'analyzer' => 'exampleAnalyzerEn'
]
]
]
];
If you do find an issue, please feel free to report it with GitHub's bug tracker for this project.
Alternatively, fork the project and make a pull request. :)
Please see CONTRIBUTING for details.
The code for LaravelElasticsearchConfigBuilder is distributed under the terms of the MIT license (see LICENSE).