瀏覽代碼

fix the bug when creating indices

Yuki Takei 6 年之前
父節點
當前提交
620971ce93
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/server/util/search.js

+ 1 - 1
src/server/util/search.js

@@ -264,7 +264,7 @@ SearchClient.prototype.prepareBodyForCreate = function(body, page) {
 
   const command = {
     index: {
-      _index: this.aliasName,
+      _index: this.indexName,
       _type: 'pages',
       _id: page._id.toString(),
     },