From 0e0c3feab9b497205eeb2481e8f1b3fff8806239 Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Wed, 1 Mar 2017 11:23:23 -0700 Subject: [PATCH] fix mapping types for 5.x+ elasticsearch has deprecated the string type in 5.x, and is removing it in 6.x --- src/helpers/create_index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/helpers/create_index.js b/src/helpers/create_index.js index 289187a..c4421c5 100644 --- a/src/helpers/create_index.js +++ b/src/helpers/create_index.js @@ -1,22 +1,22 @@ import { DEFAULT_SETTING_DOCTYPE } from '../constants'; const schema = { - jobtype: { type: 'string', index: 'not_analyzed' }, + jobtype: { type: 'keyword' }, payload: { type: 'object', enabled: false }, priority: { type: 'byte' }, timeout: { type: 'long' }, process_expiration: { type: 'date' }, - created_by: { type: 'string', index: 'not_analyzed' }, + created_by: { type: 'keyword' }, created_at: { type: 'date' }, started_at: { type: 'date' }, completed_at: { type: 'date' }, attempts: { type: 'short' }, max_attempts: { type: 'short' }, - status: { type: 'string', index: 'not_analyzed' }, + status: { type: 'keyword' }, output: { type: 'object', properties: { - content_type: { type: 'string', index: 'not_analyzed' }, + content_type: { type: 'keyword', index: false }, content: { type: 'object', enabled: false } } }