Toggling the "Hide from Archives" button obliterates a post from Elasticsearch. Not only hidden but literally gone.
This pull request changes this behavior for the VIP Search, ElasticPress, and SearchPress plugins. Ensuring the archived posts are kept indexed in Elasticsearch.
But if a site is not using it, this will ensure the archived posts are kept indexed.
And since the Elasticsearch Extensions hook is run at a later priority, there is no possibility of the status being added here if the plugin restricts it. :)
Toggling the "Hide from Archives" button obliterates a post from Elasticsearch. Not only hidden but literally gone.
This pull request changes this behavior for the VIP Search, ElasticPress, and SearchPress plugins. Ensuring the archived posts are kept indexed in Elasticsearch.
Similar support was added to the Elasticsearch Extensions plugin: https://github.com/alleyinteractive/elasticsearch-extensions/pull/59
But if a site is not using it, this will ensure the archived posts are kept indexed.
And since the Elasticsearch Extensions hook is run at a later priority, there is no possibility of the status being added here if the plugin restricts it. :)
fixes #62