From 3375335d24570606c571d7d399c47442275f34e1 Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Thu, 12 May 2016 11:49:54 -0700 Subject: [PATCH] add type field, switch to string types should allow elasticsearch 2.x use --- src/helpers/create_index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helpers/create_index.js b/src/helpers/create_index.js index c975e78..c508109 100644 --- a/src/helpers/create_index.js +++ b/src/helpers/create_index.js @@ -1,6 +1,7 @@ import { defaultSettings } from './constants'; const schema = { + type: { type: 'string', index: 'not_analyzed' }, payload: { type: 'object', enabled: false }, priority: { type: 'short' }, timeout: { type: 'long' }, @@ -11,7 +12,7 @@ const schema = { completed_at: { type: 'date' }, attempts: { type: 'short' }, max_attempts: { type: 'short' }, - status: { type: 'keyword' }, + status: { type: 'string', index: 'not_analyzed' }, output: { type: 'object', properties: {