Indexing
Entities
Discovery
6min
entity discovery entity discovery does not send any data via the api to klevu its only purpose is to add missing entities to the klevu indexing entity database table or to set entities that are no longer indexable to have a next action of delete note all magento category, cms page and product entities are added here, even if they do not currently need to be indexed with klevu entity discovery will add any missing entities and determine if those entities are indexable set any entities which are no longer indexable, but were previously registered, to have a next action of delete set any entities that have become indexable to have a next action of add entity discovery will not determine if an entity requires an update send any data to klevu entity discovery is triggered on account integration via plugins via observers via cron via cli \klevu\indexing\service\entitydiscoveryorchestratorservice is responsible for entity discovery all the above methods of triggering entity discovery use this service cron as with all cron tasks added by version 4 x of the klevu integration, entity discovery cron tasks use the dedicated klevu group, allowing granular configuration of scheduling and run options we recommend using the native magento cron to run these jobs, configuring schedules if necessary, rather than a custom server side cron implementation of the cli command entity discovery runs once a day via cron the configuration for the cron can be found here module m2 indexing/etc/crontab xml module m2 indexing/etc/crontab xml \<job name="klevu indexing discover entities" instance="klevu\indexing\cron\discoverentities" method="execute"> \<schedule>0 2 \</schedule> \</job> cli klevu\ indexing\ entity discovery the discovery can also be triggered via cli and has 2 optional parameters api keys \[optional] comma separated list of api keys to run discovery for entity types \[optional] comma separated list of entity types to run discovery for, options klevu product klevu category klevu cms e g bin/magento klevu\ indexing\ entity discovery \\ \ entity types="klevu product" \\ \ api keys="klevu example js api key"