Jump to content

search index is reset when new products are added


mj1758

Recommended Posts

Hi

I use Prestashop 1.7.3.4 and have around 1200 products in catalogue. When a new product is added to the catalogue, the search index is automatically cleared and only around 17 products remain in the index. I have to manually click on " Add missing products to the index " or "Re-build the entire index " to index all products. I switched automatic indexing to "no" but the problem still remains. My question is why the whole index gets cleared every time a new product is added? only the new products should be missing from the index

Link to comment
Share on other sites

Hello:

It should not happend what you describe, but if you want to try a fix from code, at /classes/Search:indexation function you can try to set $full = false; at the beginning of the function or just comment all lines that erase catalog (from 584 to 615). That should avoid to regenerate entire catalog in any circunstances.

Regards

Link to comment
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
×
×
  • Create New...