These are chat archives for php-ua/yii

22nd
Mar 2017
Andrey Kravchuk
@TaPTaK
Mar 22 2017 10:27

Всем привет! Подскажите как бороться с

Elasticsearch request failed with code 400.
Error Info: Array
(
    [requestMethod] => POST
    [requestUrl] => http://127.0.0.1:9200/йцуйцуйцуй/_update
    [requestBody] => {"doc":{"fooBar":{"0":531,"1":489,"2":503,"3":477,"4":467,"6":148,"7":472,"8":501,"9":500,"10":219,"11":227}}}
    [responseCode] => 400
    [responseHeaders] => Array
        (
            [content-type] => application/json; charset=UTF-8
            [content-length] => 299
        )

    [responseBody] => Array
        (
            [error] => Array
                (
                    [root_cause] => Array
                        (
                            [0] => Array
                                (
                                    [type] => mapper_parsing_exception
                                    [reason] => failed to parse [fooBar]
                                )

                        )

                    [type] => mapper_parsing_exception
                    [reason] => failed to parse [fooBar]
                    [caused_by] => Array
                        (
                            [type] => illegal_argument_exception
                            [reason] => unknown property [0]
                        )

                )

            [status] => 400
        )

)

поле замапленно как 'fooBar' => ['type' => 'integer'],