• Resolved robgnyc

    (@robgnyc)


    Our site uses the API to update and add products. The products are added properly with no issues.

    The problem is that the latest products that we’ve added don’t come up if you search for them. This is a recent problem, so I suspect perhaps something changed with the WooCommerce core that it no longer re-indexes after products are added via the API.

    If I go in into the admin and edit the new product and save it without changing it, it immediately appears in the search.

    Any ideas to force re-indexing after an API update?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @robgnyc,

    That is an interesting situation. To help sort out what’s happening, you might try this. Add a product via the API. Then before editing the product to save it on the back end of the site, go to WooCommerce > Status > Tools and regenerate the product lookup table there.

    Then check and see if the products are visible by a search after that has run. Let me know what you find out after trying that.

    Thanks,

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hi @robgnyc

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Products not appearing in search after adding via API’ is closed to new replies.