mikaelmattsson / elasticsearch-indexer

Index WordPress posts and post meta data using Elasticseach.
GNU General Public License v2.0
43 stars 5 forks source link

Blank site when "Integration Full", Syntax Error when Reindex. #14

Open ericleonardo opened 6 years ago

ericleonardo commented 6 years ago

Hi! This plugin has bring me hope for a fast site (want host 800.000 offers - custom post type). Currently, my site is having slow list pages at 7.000 offers, imagine when 800.000 offers...

Just installed Elasticsearch 6.2.4 and run curl test OK. Installed plugin and Indexed all post first time OK. As Integration was set to Full, my site simply became blank, doesn't load. So, I changed to Integration to Search only. When clicking to Reindex all post: Syntax error. WordPress 4.9.5, PHP 7.2.4, Nginx (by Engintron cPanel plugin), mysql Ver 15.1 Distrib 10.1.32-MariaDB. PLEASE, bring this great plugin to life again!

It seems like error is related to Guzzle. Its current version is 6.3.3. But Elasticsearch Indexer uses 3.9.3. Do you think it's better update Guzzle files on Elasticsearch Indexer plugin to make it work again? PHP log:

[22-Apr-2018 18:06:58 UTC] PHP Fatal error: Uncaught Guzzle\Http\Exception\ClientErrorResponseException: Client error response

[status code] 400 [reason phrase] Bad Request [url] http://127.0.0.1:9200/mysitecom-1/post/_search in /home/mysite/public_html/wp-content/plugins/elasticsearch-indexer/vendor/guzzle/guzzle/src/Guzzle/Http/Exception/BadResponseException.php:43

Stack trace:

0 /home/mysite/public_html/wp-content/plugins/elasticsearch-indexer/vendor/guzzle/guzzle/src/Guzzle/Http/Message/Request.php(145): Guzzle\Http\Exception\BadResponseException::factory(Object(Guzzle\Http\Message\EntityEnclosingRequest), Object(Guzzle\Http\Message\Response))

1 [internal function]: Guzzle\Http\Message\Request::onRequestError(Object(Guzzle\Common\Event), 'request.error', Object(Symfony\Component\EventDispatcher\EventDispatcher))

2 /home/mysite/public_html/wp-content/plugins/elasticsearch-indexer/vendor/symfony/event-dispatcher/EventDispatcher.php(164): call_user_func(Array, Object(Guzzle\Common\Event), 'request.error', Object(Symfony\Component\EventDispatc in /home/mysite/public_html/wp-content/plugins/elasticsearch-indexer/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/GuzzleConnection.php on line 277