|
3 | 3 | This package can be used to index a huge amount of nodes in ElasticSearch indexes. This |
4 | 4 | package use Beanstalkd and the JobQueue package to handle ES indexing asynchronously. |
5 | 5 |
|
6 | | -## Batch Indexing |
| 6 | +# Breaking change after an upgrade to 3.0 |
7 | 7 |
|
8 | | -### How to build indexing job |
| 8 | +## Install and configure your Queue package |
| 9 | + |
| 10 | +You need to install the correct Queue package based on your needs. |
| 11 | + |
| 12 | +Available packages: |
| 13 | + |
| 14 | + - [sqlite](https://packagist.org/packages/flownative/jobqueue-sqlite) |
| 15 | + - [beanstalkd](https://packagist.org/packages/flownative/jobqueue-beanstalkd) |
| 16 | + - [doctrine](https://packagist.org/packages/flownative/jobqueue-doctrine) |
| 17 | + - [redis](https://packagist.org/packages/flownative/jobqueue-redis) |
| 18 | + |
| 19 | +Please check the package documentation for specific configurations. |
| 20 | + |
| 21 | +The default configuration use Beanstalkd, but you need to install it manually: |
| 22 | + |
| 23 | + composer require flowpack/jobqueue-beanstalkd |
| 24 | + |
| 25 | +Check the ```Settings.yaml``` to adapt based on the Queue package, you need to adapt the ```className```: |
| 26 | + |
| 27 | + Flowpack: |
| 28 | + JobQueue: |
| 29 | + Common: |
| 30 | + queues: |
| 31 | + 'Flowpack.ElasticSearch.ContentRepositoryQueueIndexer': |
| 32 | + className: 'Flowpack\JobQueue\Beanstalkd\Queue\BeanstalkdQueue' |
| 33 | + |
| 34 | + 'Flowpack.ElasticSearch.ContentRepositoryQueueIndexer.Live': |
| 35 | + className: 'Flowpack\JobQueue\Beanstalkd\Queue\BeanstalkdQueue' |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | +# Batch Indexing |
| 40 | + |
| 41 | +## How to build indexing job |
9 | 42 |
|
10 | 43 | flow nodeindexqueue:build --workspace live |
11 | 44 |
|
12 | | -### How to process indexing job |
| 45 | +## How to process indexing job |
13 | 46 |
|
14 | 47 | You can use this CLI command to process indexing job: |
15 | 48 |
|
16 | 49 | flow nodeindexqueue:work --queue batch |
17 | 50 |
|
18 | | -## Live Indexing |
| 51 | +# Live Indexing |
19 | 52 |
|
20 | | -You can enable async live indexing by editing ```Settings.yaml```: |
| 53 | +You can disable async live indexing by editing ```Settings.yaml```: |
21 | 54 |
|
22 | 55 | Flowpack: |
23 | 56 | ElasticSearch: |
24 | 57 | ContentRepositoryQueueIndexer: |
25 | | - enableLiveAsyncIndexing: true |
| 58 | + enableLiveAsyncIndexing: false |
26 | 59 | |
27 | 60 | You can use this CLI command to process indexing job: |
28 | 61 |
|
29 | 62 | flow nodeindexqueue:work --queue live |
30 | 63 |
|
31 | | -## Supervisord configuration |
| 64 | +# Supervisord configuration |
32 | 65 |
|
33 | 66 | You can use tools like ```supervisord``` to manage long runing process. Bellow you can |
34 | 67 | found a basic configuration: |
|
0 commit comments