You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.
Secondary issue is that just putting those constants in config is pain because ::constant(...) is not valid array key in neon syntax.
Therefore I would love to have option of using string constants, possibly same as in Kdyby/Curl - using just part after CURLOPT_ : $constant = 'CURLOPT_' . strtoupper($option) which would be processed in during config build to correct array of parameters for elastica
The text was updated successfully, but these errors were encountered:
rattuscz
added a commit
to rattuscz/ElasticSearch
that referenced
this issue
Sep 22, 2015
elastica client expects curl options as key => value directly put into curl_setopt :
This is not possible as keys are CURLOPT_* constants which are integer and Config::merge helper reindexes arrays with integer keys:
DI builder users Config\Helpers::merge to build configuration array :
https://github.com/Kdyby/ElasticSearch/blob/master/src/Kdyby/ElasticSearch/DI/SearchExtension.php#L69
Helpers::merge reindexes array if keys are integers :
https://github.com/nette/di/blob/master/src/DI/Config/Helpers.php#L28-L29
Secondary issue is that just putting those constants in config is pain because ::constant(...) is not valid array key in neon syntax.
Therefore I would love to have option of using string constants, possibly same as in Kdyby/Curl - using just part after CURLOPT_ :
$constant = 'CURLOPT_' . strtoupper($option)
which would be processed in during config build to correct array of parameters for elasticaThe text was updated successfully, but these errors were encountered: