Hi, i try to use the es php module. I can indexing documents but when i
search for something i got an error and dont know what this mean. I use
this script:
Fatal error: Uncaught exception
'Elasticsearch\Common\Exceptions\UnexpectedValueException' with message 'id
is not a valid parameter' in
/var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/AbstractEndpoint.php:263
Stack trace: #0
/var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/AbstractEndpoint.php(239):
Elasticsearch\Endpoints\AbstractEndpoint->ifParamsInvalidThrowException(Array) #1
/var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/AbstractEndpoint.php(115):
Elasticsearch\Endpoints\AbstractEndpoint->checkUserParams(Array) #2
/var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Client.php(1009):
Elasticsearch\Endpoints\AbstractEndpoint->setParams(Array) #3
/var/www/awesome/index.php(23): Elasticsearch\Client->search(Array) #4
{main} thrown in /var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/AbstractEndpoint.php
on line
263Maybe someone knows what this could be. Thanks a lot for helping.
Stefan
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 Fri, Jun 27, 2014 at 1:51 PM, Stefan Kruse besucher80@gmx.de wrote:
Hi, i try to use the es php module. I can indexing documents but when i
search for something i got an error and dont know what this mean. I use
this script:
Fatal error: Uncaught exception
'Elasticsearch\Common\Exceptions\UnexpectedValueException' with message 'id
is not a valid parameter' in
/var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/AbstractEndpoint.php:263
Stack trace: #0
/var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/AbstractEndpoint.php(239):
Elasticsearch\Endpoints\AbstractEndpoint->ifParamsInvalidThrowException(Array) #1
/var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/AbstractEndpoint.php(115):
Elasticsearch\Endpoints\AbstractEndpoint->checkUserParams(Array) #2
/var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Client.php(1009):
Elasticsearch\Endpoints\AbstractEndpoint->setParams(Array) #3
/var/www/awesome/index.php(23): Elasticsearch\Client->search(Array) #4
{main} thrown in /var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/AbstractEndpoint.php
on line
263Maybe someone knows what this could be. Thanks a lot for helping.
Stefan
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.