Elasticsearch throw "type is missing" and no index is populated

Elasticsearch is running in the same server. The ping test works OK and the “Installation test” responses with no errors…

# curl -X GET "localhost:9200/"
{
  "name" : "_XBnDUB",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "hpQwwU3hQECWuJsUACa2yA",
  "version" : {
    "number" : "5.6.16",
    "build_hash" : "3a740d1",
    "build_date" : "2019-03-13T15:33:36.565Z",
    "build_snapshot" : false,
    "lucene_version" : "6.6.1"
  },
  "tagline" : "You Know, for Search"
}

I’ve enabled and disabled different modules in the suitecrm “Search settings” and same results were got.

The problem occurs here:

and this is my var_dump($params) used in the line, but I don’t know where is the problem:

array(1) {
  ["body"]=>
  array(2) {
    [0]=>
    array(1) {
      ["index"]=>
      array(2) {
        ["_index"]=>
        string(8) "contacts"
        ["_id"]=>
        string(36) "16494016-fa03-55b5-9e51-4f3b89d52f57"
      }
    }
    [1]=>
    array(3) {
      ["name"]=>
      array(3) {
        ["name"]=>
        string(23) "Rafael Monroy Caballero"
        ["first"]=>
        string(6) "Rafael"
        ["last"]=>
        string(16) "Monroy Caballero"
      }
      ["meta"]=>
      array(3) {
        ["created"]=>
        array(3) {
          ["date"]=>
          string(16) "02/15/2012 10:32"
          ["user_id"]=>
          string(36) "c2e00472-84ea-5c12-4970-4c8e38071b64"
          ["user_name"]=>
          string(13) "sonia.jimenez"
        }
        ["modified"]=>
        array(3) {
          ["date"]=>
          string(16) "02/15/2012 10:32"
          ["user_id"]=>
          string(36) "c2e00472-84ea-5c12-4970-4c8e38071b64"
          ["user_name"]=>
          string(13) "sonia.jimenez"
        }
        ["assigned"]=>
        array(2) {
          ["user_id"]=>
          string(36) "c2e00472-84ea-5c12-4970-4c8e38071b64"
          ["user_name"]=>
          string(13) "sonia.jimenez"
        }
      }
      ["email_and_name1"]=>
      string(26) "Rafael Monroy Caballero <>"
    }
  }
}