open20 / amos-elasticsearch
Amos Elasticsearch
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:component
Requires
- php: >=5.4.0
- elasticsearch/elasticsearch: ^6.0
- fabpot/goutte: ^3.1.0 ||^4.0.3
- jakeasmith/http_build_url: ~1.0.0
- nadar/stemming: ~1.0.0
- open20/amos-core: ^1.20
- phpoffice/phpspreadsheet: *
- smalot/pdfparser: *
- tinybutstrong/opentbs: *
This package is not auto-updated.
Last update: 2024-11-12 12:31:08 UTC
README
Plugin description
Installation
Add module to your main config in backend:
<?php 'modules' => [ 'elasticsearch' => [ 'class' => '\open20\elasticsearch\Module', 'modelMap' => [ 'ElasticModelSearch' => 'common\modules\transformermanagers\ElasticModelSearch', ], 'hosts' => ['http://localhost:9201', ], 'modelsEnabled' => [ /** * Add here the classnames of the models where you want the elasticsearch => class trasformation of model * (i.e. 'open20\amos\news\models\News' => 'common\modules\transformermanagers\NewsTransformerManager' ) */ ], ], ],
luya command
php vendor/bin/luya elastic/re-index-cms // rebuild cms pages elasticsearch index
php vendor/bin/luya elastic/rebuild // rebuild all Record models elasticsearch index
php vendor/bin/luya elastic/clear-all-indexes // clear all elasticsearch index