いつもお世話になります。
elasticsearch5.6をawsのec2上に構築しています。
elasticsearch-phpでデータを取得しようとしていますが。。。
error: Uncaught exception 'Elasticsearch\\Common\\Exceptions\\RuntimeException' with message 'Your version of PHP / json-ext does not support the constant 'JSON_PRESERVE_ZERO_FRACTION', which is important for proper type mapping in Elasticsearch. Please upgrade your PHP or json-ext.\nIf you are unable to upgrade, and are willing to accept the consequences, you may use the allowBadJSONSerialization() method on the ClientBuilder to bypass this limitation.' in
のエラーがでます。
https://github.com/elastic/elasticsearch-php/issues/534
ここによれば、PHPのバージョンが5.6.6以上でかつjson-extが1.3.7以上でなければ、このようなエラーがでると書いてありました。
PHPのバージョンは5.6.30です。
json-extというものが何をさすのかわからないので、調査の使用がありません。ご教授をお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/04/30 01:59