Jump to content

Rebuild Search Index from php script


dooban
 Share

Recommended Posts

Hi there,

I use CSV files to import products to prestashop programatically using a php script using AdminImportController. How can I make a full index rebuild from php ? I know I can from backoffice, but I need it to execute right after the csv import.

Thanks for your help

 

Share this post


Link to post
Share on other sites

  • 1 year later...

Hi,

I have googled the same question and came to this thread. For those who are still looking for the answer: it is inside searchcron.php file inside admin folder.

Just add your shop_id, token, and set full to 1

Regards.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More