Open tobiaslohr opened 4 years ago
Hey @tobiaslohr thanks for making me aware of these new APIs. Do you know if this is documented anywhere? I don't see it in the Global Jobs documentation, so I am wondering if we need to follow up on that.
@matt-rose-salesforce -- looks like it is in the DOC3 version of the Global Jobs documentation.
Thanks @gabrielfreiberg !
Hello. As I see index:rebuild
and index:update
are not available, so I am using job.run
command, but I always get an error of type "InternalServerErrorException". There is no available documentation or whatsoever for sfcc-search-index-active-data-full-update/ sfcc-search-index-content-full-update and sfcc-search-index-product-full-update, so I am not 100% sure what parameters do they accept... Can I get a little help with that?
Salesforce B2C Commerce 20.4 comes with additional process APIs for search index updates (rebuild and incremental update) capabilities. Supported index types are
product
,content
,active data
, the following APIs are being made available and are subject for adoption as part of a new CLI command or set of commands.This adds more capabilities in regards to a full CI/CD set up for B2C environments, as there was no out of the box support for index updates so far. Workarounds using custom jobs have been in place with requires upfront configuration to be made to the environment though.
Brief suggestion for new CLI commands that implement these new Data APIs:
--instance <instance>
the B2C instance to update the index on, can be an instance alias--type <type>
type of index to update, can be any ofproduct
,content
oractivedata
--sites <sites>
comma separated list of site IDs to run the index update for--all-sites
optional, flag to have indexes of all sites being updated, will be ignored if--sites
is used--sync
optional, flag to wait for the prompt until the index update has been finished, false by default