array(3) { ["code"]=> int(2000) ["msg"]=> array(7) { ["root_cause"]=> array(1) { [0]=> array(2) { ["type"]=> string(26) "illegal_argument_exception" ["reason"]=> string(350) "Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [create_time] in order to load field data by uninverting the inverted index. Note that this can use significant memory." } } ["type"]=> string(32) "search_phase_execution_exception" ["reason"]=> string(17) "all shards failed" ["phase"]=> string(5) "query" ["grouped"]=> bool(true) ["failed_shards"]=> array(1) { [0]=> array(4) { ["shard"]=> int(0) ["index"]=> string(13) "cloud_ppt_app" ["node"]=> string(22) "n0p8vY8gTPOLe-dWzVPZ9Q" ["reason"]=> array(2) { ["type"]=> string(26) "illegal_argument_exception" ["reason"]=> string(350) "Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [create_time] in order to load field data by uninverting the inverted index. Note that this can use significant memory." } } } ["caused_by"]=> array(3) { ["type"]=> string(26) "illegal_argument_exception" ["reason"]=> string(350) "Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [create_time] in order to load field data by uninverting the inverted index. Note that this can use significant memory." ["caused_by"]=> array(2) { ["type"]=> string(26) "illegal_argument_exception" ["reason"]=> string(350) "Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [create_time] in order to load field data by uninverting the inverted index. Note that this can use significant memory." } } } ["data"]=> array(0) { } }