contexture-elasticsearch
Advanced tools
Comparing version 1.8.2 to 1.9.0
@@ -0,1 +1,4 @@ | ||
# 1.9.0 | ||
* Add `aliasOf` to elastic schemas (for better alias handling) | ||
# 1.8.2 | ||
@@ -2,0 +5,0 @@ * Fix bug with pivot processReponse including groups that weren't in the query when setting a drilldown |
{ | ||
"name": "contexture-elasticsearch", | ||
"version": "1.8.2", | ||
"version": "1.9.0", | ||
"description": "ElasticSearch Provider for Contexture", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -54,3 +54,3 @@ let _ = require('lodash/fp') | ||
// Just takes the first index that matched the alias | ||
_.mapValues(([x]) => schemas[x]) | ||
_.mapValues(([x]) => _.merge({ elasticsearch: { aliasOf: x } }, schemas[x])) | ||
) | ||
@@ -57,0 +57,0 @@ |
@@ -207,2 +207,3 @@ module.exports = { | ||
type: 'movie', | ||
aliasOf: 'movies', | ||
}, | ||
@@ -209,0 +210,0 @@ fields: { |
@@ -33,2 +33,3 @@ module.exports = { | ||
index: 'imdb', | ||
aliasOf: 'movies', | ||
}, | ||
@@ -35,0 +36,0 @@ fields: { |
428501
12994