Просмотр исходного кода

fix the bug when creating indices

Yuki Takei 6 лет назад
Родитель
Сommit
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(),
     },