Browse Source

Fix: type name

Sotaro KARASAWA 10 năm trước cách đây
mục cha
commit
667143791f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/util/search.js

+ 1 - 1
lib/util/search.js

@@ -49,7 +49,7 @@ SearchClient.prototype.prepareBodyForCreate = function(body, page) {
   var command = {
     index: {
       _index: this.index_name,
-      _type: 'page',
+      _type: 'pages',
       _id: page._id.toString(),
     }
   };