-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow OpenSearch with ElasticPress (#475)
* Include ElasticPress patch * Delete unused post-type
- Loading branch information
1 parent
1867ace
commit cc4308f
Showing
3 changed files
with
18 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
public/app/themes/clarity/inc/elasticsearch-on-opensearch.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; | ||
} | ||
); |
This file was deleted.
Oops, something went wrong.