Hi,
I noticed that products I remove from Woocommerce aren’t removed from the index.
When manually triggering (on wp shell)add_remove_document_to_solr_index with the ID of the productthat should be removed, a ‘php notice’ is thrown and the product remains in the index
add_remove_document_to_solr_index(420788, get_post(420788))
Notice: Trying to get property ‘post_status’ of non-object in ../plugins/wpsolr-pro/wpsolr/core/wpsolr_include.inc.php on line 157
Notice: Trying to get property ‘post_type’ of non-object in ../plugins/wpsolr-pro/wpsolr/core/wpsolr_include.inc.php on line 162
=> NULL
How does one remove an item from the index that no longer exist in WordPress?