This bundle depends on Pimcore Datahub bundle. This needs to be installed first.
To install simple rest use following commands:
composer require pimcore/data-hub-simple-rest ./bin/console pimcore:bundle:enable PimcoreDataHubSimpleRestBundle
Make sure, that priority of Datahub bundle is higher than priority of Datahub Simple Rest API bundle. This can be specified as parameter during bundle enablement or in Pimcore extension manager.
Configure Elasticsearch hosts and index name prefix with symfony configuration:
pimcore_data_hub_simple_rest: # Prefix for index names index_name_prefix: datahub_restindex_ # Limit of page size and offset when paging only works via page cursor (and not page numbers anymore). Limit 10000 comes from Elasticsearch. max_results_window: 10000 # List of elasticsearch hosts es_hosts: # Default: - localhost
Supported elasticsearch versions: 6 and 7
To make sure indexing queue is processed and index is filled, following command has to be executed on regular base, e.g. every 5 minutes.
*/5 * * * * php /home/project/www/bin/console datahub:simple-rest:process-queue