Re: Error for elasticsearch php api

2014-07-24 Thread Tanguy Bernard
> > My answer is very late, but here : >> > > > >> require '../vendor/autoload.php'; >> >> $client = new Elasticsearch\Client(); >> >> $params = array(); >> $params['body'] = array('testField' => 'abc'); >> >> $params['index'] = 'my_index'; >> $params['ty

Re: Error for elasticsearch php api

2014-06-30 Thread Alexander Reelsen
Hey, my PHP skills are next to none, but if you dont clear out that params array, dont you try to execute the search operation with exactly the same as the index operation (which will very likely fail, as id is not a valid parameter for a search, as mentioned in the error message)? --Alex On F