Skip to content

Commit

Permalink
Allow OpenSearch with ElasticPress (#475)
Browse files Browse the repository at this point in the history
* Include ElasticPress patch

* Delete unused post-type
  • Loading branch information
wilson1000 authored Mar 18, 2024
1 parent 1867ace commit cc4308f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 48 deletions.
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.

0 comments on commit cc4308f

Please sign in to comment.