Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling archiveless posts in Elasticsearch plugins #64

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

renatonascalves
Copy link
Contributor

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: alleyinteractive/elasticsearch-extensions#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

@renatonascalves renatonascalves self-assigned this Nov 10, 2023
Copy link
Member

@attackant attackant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐙

@renatonascalves renatonascalves merged commit e128ef9 into main Nov 13, 2023
1 check passed
@renatonascalves renatonascalves deleted the feature/support-elasticsearch-plugins branch November 13, 2023 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handling archiveless posts in Elasticsearch queries
2 participants