Browse Source

fix the bug when creating indices

Yuki Takei 6 years ago
parent
commit
620971ce93
1 changed files with 1 additions and 1 deletions
  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 = {
   const command = {
     index: {
     index: {
-      _index: this.aliasName,
+      _index: this.indexName,
       _type: 'pages',
       _type: 'pages',
       _id: page._id.toString(),
       _id: page._id.toString(),
     },
     },