Extension list

yootheme

ecommerce

joomla

Skip to main content

List of all our extensions

Create an account

JP Site Search - CLI and Cron


Article Index

CLI and Cron

JP Site Search supports selective source indexing from CLI and cron. This is useful for large websites where different content types should be indexed at different frequencies.

CLI examples

php cli/joomla.php jpsitesearch:index --source=all
php cli/joomla.php jpsitesearch:index --source=articles
php cli/joomla.php jpsitesearch:index --source=contacts
php cli/joomla.php jpsitesearch:index --source=categories
php cli/joomla.php jpsitesearch:index --source=documents

On DDEV, run the command through the container:

ddev exec php web/cli/joomla.php jpsitesearch:index --source=all

Cron examples

index.php?option=com_jpsitesearch&task=cron.index&token=YOUR_TOKEN&source=all
index.php?option=com_jpsitesearch&task=cron.index&token=YOUR_TOKEN&source=articles
index.php?option=com_jpsitesearch&task=cron.index&token=YOUR_TOKEN&source=contacts
index.php?option=com_jpsitesearch&task=cron.index&token=YOUR_TOKEN&source=categories
index.php?option=com_jpsitesearch&task=cron.index&token=YOUR_TOKEN&source=documents

Example schedule:

  • Contacts: hourly
  • Articles: nightly
  • Documents: nightly or several times per day
  • All public content: weekly or after major upgrades
Frontend Module
Page