瀏覽代碼

Fixed new Url

patrickkusebauch 5 年之前
父節點
當前提交
79d12135dd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/Monolog/Handler/ElasticaHandlerTest.php

+ 1 - 1
tests/Monolog/Handler/ElasticaHandlerTest.php

@@ -288,7 +288,7 @@ class ElasticaHandlerTest extends TestCase
     protected function getDocSourceFromElastic(Client $client, $index, $type, $documentId)
     {
         if($type === null) {
-            $path  = "/{$index}/{$documentId}";
+            $path  = "/{$index}/_doc/{$documentId}";
         } else {
             $path  = "/{$index}/{$type}/{$documentId}";
         }