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

PLANET-6235: Update ElasticPress to 4.5 #246

Merged
merged 1 commit into from May 22, 2023

Conversation

lithrel
Copy link
Member

@lithrel lithrel commented Apr 24, 2023

Ref: https://jira.greenpeace.org/browse/PLANET-6235

Changelog: https://github.com/10up/ElasticPress/blob/develop/CHANGELOG.md (from 3.5.6)

Some commands have changed. We only use indexation, and the old command is deprecated but not removed so we can apply those changes after update:

Old Command New Command
wp elasticpress index wp elasticpress sync
wp elasticpress get-cluster-indexes wp elasticpress get-cluster-indices
wp elasticpress get-indexes wp elasticpress get-indices
wp elasticpress clear-index wp elasticpress clear-sync
wp elasticpress get-indexing-status wp elasticpress get-ongoing-sync-status
wp elasticpress get-last-cli-index wp elasticpress get-last-cli-sync
wp elasticpress stop-indexing wp elasticpress stop-sync

Some filters have changed, but we don't use any of those:

Old Filter New Filter
ep_formatted_args_query ep_post_formatted_args_query
ep_match_phrase_boost ep_post_match_phrase_boost
ep_match_boost ep_post_match_boost
ep_fuzziness_arg ep_post_fuzziness_arg
ep_match_fuzziness ep_post_match_fuzziness
ep_match_cross_fields_boost ep_post_match_cross_fields_boost

Our current installation of Elasticpress With WPML doesn't allow for language specific search. We should open a ticket to try the plugin dedicated to this https://wpml.org/documentation/plugins-compatibility/using-elasticpress-on-your-multilingual-site/ (using the master branch instead of the release).

@lithrel lithrel self-assigned this Apr 24, 2023
@lithrel lithrel marked this pull request as ready for review May 9, 2023 16:45
Copy link
Member

@comzeradd comzeradd left a comment

Choose a reason for hiding this comment

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

👍

I think we only use the index command on the two development environments.

@lithrel lithrel merged commit a0702a4 into main May 22, 2023
1 check failed
@lithrel lithrel deleted the feature/elasticpress-update-6235 branch May 22, 2023 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants