@@ -197,7 +197,7 @@ function loadSchema (entityType) {
197
197
}
198
198
199
199
// this is deprecated just for ES 5.6
200
- function putMappings ( db , indexName , next ) {
200
+ function putMappings ( db , indexName , next ) {
201
201
let productSchema = loadSchema ( 'product' ) ;
202
202
let categorySchema = loadSchema ( 'category' ) ;
203
203
let taxruleSchema = loadSchema ( 'taxrule' ) ;
@@ -207,39 +207,39 @@ function putMappings(db, indexName, next) {
207
207
208
208
db . indices . putMapping ( {
209
209
index : indexName ,
210
- type : " product" ,
210
+ type : ' product' ,
211
211
body : productSchema
212
212
} ) . then ( res1 => {
213
213
console . dir ( res1 , { depth : null , colors : true } )
214
214
215
215
db . indices . putMapping ( {
216
216
index : indexName ,
217
- type : " taxrule" ,
217
+ type : ' taxrule' ,
218
218
body : taxruleSchema
219
219
} ) . then ( res2 => {
220
220
console . dir ( res2 , { depth : null , colors : true } )
221
221
222
222
db . indices . putMapping ( {
223
223
index : indexName ,
224
- type : " attribute" ,
224
+ type : ' attribute' ,
225
225
body : attributeSchema
226
226
} ) . then ( res3 => {
227
227
console . dir ( res3 , { depth : null , colors : true } )
228
228
db . indices . putMapping ( {
229
229
index : indexName ,
230
- type : " cms_page" ,
230
+ type : ' cms_page' ,
231
231
body : pageSchema
232
232
} ) . then ( res4 => {
233
- console . dir ( res4 , { depth : null , colors : true } )
233
+ console . dir ( res4 , { depth : null , colors : true } )
234
234
db . indices . putMapping ( {
235
235
index : indexName ,
236
- type : " cms_block" ,
236
+ type : ' cms_block' ,
237
237
body : blockSchema
238
238
} ) . then ( res5 => {
239
- console . dir ( res5 , { depth : null , colors : true } )
239
+ console . dir ( res5 , { depth : null , colors : true } )
240
240
db . indices . putMapping ( {
241
241
index : indexName ,
242
- type : " category" ,
242
+ type : ' category' ,
243
243
body : categorySchema
244
244
} ) . then ( res6 => {
245
245
console . dir ( res6 , { depth : null , colors : true } )
@@ -259,8 +259,6 @@ function putMappings(db, indexName, next) {
259
259
} )
260
260
}
261
261
262
-
263
-
264
262
module . exports = {
265
263
putAlias,
266
264
createIndex,
0 commit comments