Hello. I'm building a simple elasticsearch/PHP application, and I got a very weird error. I can search on it just fine, though I need to build pagination for it still, but when I attempt to index something, I simply get a "File not found" error. I'm using a CSV to store the data, and it's been working fine so far, but I can't insert any data.
Honestly, that's the biggest issue, I can't get the error logs. Spent all day trying to set up Filebeats or something to get it and that's going nowhere (seemingly issues with running on Windows Powershell, I always eventually run into some command that Windows doesn't recognize). I can send the full code, though.
As you can see, very, very basic. As for the init.php...
<?php
require_once __DIR__ . '/vendor/autoload.php';
use Elasticsearch\ClientBuilder;
$es = Clientbuilder::create()->setHosts(['http://es01:9200'])->build();
Hope this is enough? Gonna keep trying to set up filebeats so I can see error logs, but frankly I have no idea how I'll manage to do that. A problem at a time, I suppose.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.