Array ( [0] => Array ( [index] => Array ( [_index] => my_blog [_id] => 1 ) ) [1] => Array ( [title] => My First Blog [content] => This is my first post on Elasticsearch! [author] => John Doe [category_id] => 2 [category] => Fashion [created_at] => 2025-12-10T13:05:14+00:00 ) [2] => Array ( [index] => Array ( [_index] => my_blog [_id] => 2 ) ) [3] => Array ( [title] => My Second Blog [content] => This is my second post on Elasticsearch! [author] => Jane Doe [category_id] => 1 [category] => Tech [created_at] => 2025-12-10T13:05:14+00:00 ) [4] => Array ( [index] => Array ( [_index] => my_blog [_id] => 3 ) ) [5] => Array ( [title] => My Third Blog [content] => This is my third post on Elasticsearch! [author] => Alice Smith [category_id] => 3 [category] => Arts [created_at] => 2025-12-10T13:05:14+00:00 ) )
Fatal error: Uncaught Elastic\Transport\Exception\NoNodeAvailableException: No alive nodes. All the 1 nodes seem to be down. in /home/delnaorestes/public_html/elastic_search_test/vendor/elastic/transport/src/NodePool/SimpleNodePool.php:77 Stack trace: #0 /home/delnaorestes/public_html/elastic_search_test/vendor/elastic/transport/src/Transport.php(365): Elastic\Transport\NodePool\SimpleNodePool->nextNode() #1 /home/delnaorestes/public_html/elastic_search_test/vendor/elasticsearch/elasticsearch/src/Client.php(181): Elastic\Transport\Transport->sendRequest(Object(Nyholm\Psr7\ServerRequest)) #2 /home/delnaorestes/public_html/elastic_search_test/vendor/elasticsearch/elasticsearch/src/Traits/ClientEndpointsTrait.php(82): Elastic\Elasticsearch\Client->sendRequest(Object(Nyholm\Psr7\ServerRequest)) #3 /home/delnaorestes/public_html/elastic_search_test/create_bulk_document.php(69): Elastic\Elasticsearch\Client->bulk(Array) #4 {main} thrown in /home/delnaorestes/public_html/elastic_search_test/vendor/elastic/transport/src/NodePool/SimpleNodePool.php on line 77