Comparing version 0.8.6 to 0.8.7
@@ -34,2 +34,8 @@ ## [Unreleased] | ||
## [0.8.7] - 2018-02-09 | ||
### Fixed | ||
* Bug in the index mapping of Elasticsearch | ||
## [0.8.6] - 2018-02-09 | ||
@@ -153,5 +159,6 @@ | ||
``` | ||
## [0.7.0] - 2018-01-12 | ||
```` | ||
## [0.7.0] - 2018-01-12 | ||
### Added | ||
@@ -427,2 +434,3 @@ | ||
[0.8.7]: https://github.com/Yonirt/moltyjs/compare/v0.8.6...v0.8.7 | ||
[0.8.6]: https://github.com/Yonirt/moltyjs/compare/v0.8.5...v0.8.6 | ||
@@ -429,0 +437,0 @@ [0.8.5]: https://github.com/Yonirt/moltyjs/compare/v0.8.4...v0.8.5 |
@@ -338,12 +338,12 @@ 'use strict'; | ||
Object.keys(indexes).forEach(function (index) { | ||
indexes = _extends({}, indexes, { | ||
[index]: _extends({}, indexes[index], { | ||
store: true | ||
}) | ||
}); | ||
/*Object.keys(indexes).forEach(index => { | ||
indexes = { | ||
...indexes, | ||
[index]: { | ||
...indexes[index], | ||
store: true, | ||
}, | ||
}; | ||
}); | ||
yield _this8._elasticSearch.putMapping(index, collection, indexes); | ||
await this._elasticSearch.putMapping(index, collection, indexes);*/ | ||
} | ||
@@ -350,0 +350,0 @@ |
@@ -105,13 +105,5 @@ 'use strict'; | ||
type: { type: 'keyword' } | ||
}, properties, { | ||
suggest: { | ||
type: 'completion', | ||
analyzer: 'simple', | ||
search_analyzer: 'simple', | ||
payloads: true | ||
} | ||
}) | ||
}, properties) | ||
} | ||
}; | ||
console.log(mapping); | ||
return this.esClient.indices.putMapping(mapping); | ||
@@ -118,0 +110,0 @@ } |
{ | ||
"name": "moltyjs", | ||
"version": "0.8.6", | ||
"version": "0.8.7", | ||
"description": "A tiny ODM for MongoDB with multy tenancy support.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
121856
2275