Skip to content

Commit fa4eaaa

Browse files
#179 - Update memberId to also be of type keyword in the index
1 parent 12051c6 commit fa4eaaa

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

scripts/createNewIndex.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ co(function * createIndex () {
2020
body.mappings[config.get('esConfig.ES_TYPE')] = {
2121
properties: {
2222
...existingMappings.properties,
23-
challengeId: { type: 'keyword' }
23+
challengeId: { type: 'keyword' },
24+
memberId: { type: 'keyword' }
2425
}
2526
}
2627
yield esClient.indices.create({

scripts/deleteIndex.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ const helper = require('../src/common/helper')
1010
co(function * deleteIndex () {
1111
logger.info('ES Index deletion started!')
1212
const esClient = helper.getEsClient()
13-
yield esClient.indices.delete({
14-
index: config.get('esConfig.ES_INDEX')
15-
})
13+
// yield esClient.indices.delete({
14+
// index: config.get('esConfig.ES_INDEX')
15+
// })
1616
yield esClient.indices.delete({
1717
index: config.get('esConfig.ES_INDEX_V2')
1818
})

0 commit comments

Comments
 (0)