So i have my little script and search running, now i need to populate
my database.. I was not able to populate my DB with libcurl/php, so i
decided to try the php client.
Now talk about poor documentation
This codes enters values in my DB, but i don´t know why and how to
$transport = new ElasticSearchTransportHTTP("localhost", 9200);
$search = new ElasticSearchClient($transport, "twitter", "mytype");
$search->index(array('title' => 'My cool document'), $id);
However, the doc says that i can use the query DSL wich would be nice
as i learned quite a little bit the last days..
'query' => array(
'term' => array('title' => 'cool')
But this is obv wrong and i get lots of errors like: unexpected ';'
So my questions are:
(1) can i just execute any query DSL in the php client ? That would be
(2) Can someone post a working snippet ?