Ver código fonte

Update ES record type to _doc

Avtandil Kikabidze 7 anos atrás
pai
commit
34e3a48326
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/Monolog/Handler/ElasticSearchHandler.php

+ 1 - 1
src/Monolog/Handler/ElasticSearchHandler.php

@@ -66,7 +66,7 @@ class ElasticSearchHandler extends AbstractProcessingHandler
         $this->options = array_merge(
         $this->options = array_merge(
             [
             [
                 'index'        => 'monolog',      // Elastic index name
                 'index'        => 'monolog',      // Elastic index name
-                'type'         => 'record',       // Elastic document type
+                'type'         => '_doc',       // Elastic document type
                 'ignore_error' => false,          // Suppress ElasticSearch exceptions
                 'ignore_error' => false,          // Suppress ElasticSearch exceptions
             ],
             ],
             $options
             $options