I deleted a few products manually, and then re-uploaded them using WP All Import (using a different CSV template than normal). Now the products that were reuploaded do not show up in a search on the front end. I am using a basic search query, i.e. https://example-site.com/?s=my-product&post_type=product
, and nothing shows up. The actual URL for the product itself works just fine. I see it in wp-admin, and it shows up in searches there. The products are published and set to visible in the catalog and search results. I also tried regenerating product lookup tables, saving permalinks, clearing the cache...
Not sure what to try next. The search works for other products, just not the ones that were deleted and reuploaded. It's as if they are not being referenced in the database properly anymore.
I add some more controls:
pre_get_posts
or woocommerce_product_query
?