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

Allow OpenSearch with ElasticPress #475

Merged
merged 2 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/app/themes/clarity/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@


require_once 'inc/autoloader.php';
require_once 'inc/elasticsearch-on-opensearch.php';
require_once 'inc/cookies.php';
require_once 'inc/comments.php';
require_once 'inc/constants.php';
Expand All @@ -91,7 +92,6 @@
require_once 'inc/post-types/post.php';
require_once 'inc/post-types/event.php';
require_once 'inc/post-types/news.php';
// require_once 'inc/post-types/condolences.php';
require_once 'inc/post-types/regional-news.php';
require_once 'inc/post-types/regional-page.php';
require_once 'inc/post-types/team-area.php';
Expand Down
17 changes: 17 additions & 0 deletions public/app/themes/clarity/inc/elasticsearch-on-opensearch.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

/**
* We use ElasticPress to assist our search service
* Moving our search to AWS OpenSearch caused the plugin to stop working
* This hook fools ElasticPress into working.
*
* Further information:
* https://elasticpress.zendesk.com/hc/en-us/articles/16677288265741-Compatibility
*/

add_filter(
'ep_elasticsearch_version',
function() {
return '7.10';
}
);
47 changes: 0 additions & 47 deletions public/app/themes/clarity/inc/post-types/condolences.php

This file was deleted.

Loading