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
Plugin is not working with latest version of elasticpress Version 3.3 #12
Comments
@tricore-dev11 Hi. Have the exact same problem here after upgrading ElasticSearch to 7.5 and ElasticPress to 3.3 to make use of ES 7.5 With ElasticPress 3.3 and ElasticSearch 5.6 it still works. Did you manage to figure it out or gain any insight? |
@tricore-dev11 @tamara-m I've determined the problem is in line 51 of this plugin https://github.com/grossherr/elasticpress-autosuggest-endpoint/blob/master/elasticpress-autosuggest-endpoint.php#L51. To provide Autosuggest for Posts, you can call this method instead @tamara-m I'm not sure how this lines up since it seems for you the problem only exists with ES updated, not just EP updated to > 3.0. Since this method doesn't exist in the plugin, it shouldn't work with any version of ES. Either way, if this is updated in this plugin it will work again with EP > 3.0. |
Replying on the other issue as well, but sorry to say this is not the issue we are having although it's true this plugin as it is here doesn't work any more. As mentioned a couple of times, I had already updated this plugin to work with the refactored ElasticPress 3 When using the updated EP 3 functions for getting the host and index, this plugin works with ElasticSearch 5.6 through 6.8 and stops working as from ElasticSearch 7 |
If you like you can update your plugin for ElasticPress 3
|
Hi there, does anyone know where to copy this code snippet?. I'm pasting in wp-content/plugins/elasticpress/includes , but when I load the URL in the browser, it always says |
@victorpintot8 the URL only accepts |
I'm also confused about where to put this code, is this just a plugin? Also any reason you're not maintaining it anymore? |
Take this original plugin, swap out the code above in the file elasticpress-autosuggest-endpoint.php and in the plugin folder, run:
As you'll want those dependencies. There are issues with the code above, its not full compatible with the latest past 5.5, but that should get you started |
I am testing this again for a new project after a long time and came across an issue in the composer file now running PHP 8.xx For this test, I am using ElasticSearch version 7.5, so if this is OK for your project and you are using PHP 8.xx, update your composer.json file like so:
|
No description provided.
The text was updated successfully, but these errors were encountered: