Kaynağa Gözat

Update ES record type to _doc

Avtandil Kikabidze 7 yıl önce
ebeveyn
işleme
34e3a48326
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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(
             [
                 'index'        => 'monolog',      // Elastic index name
-                'type'         => 'record',       // Elastic document type
+                'type'         => '_doc',       // Elastic document type
                 'ignore_error' => false,          // Suppress ElasticSearch exceptions
             ],
             $options