From 6ea711da87f163143a0ab5394b44bc9421d8b44f Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Tue, 26 Apr 2016 17:40:57 -0700 Subject: [PATCH] amend the schema - single output object, add cerated_by --- src/helpers/create_index.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/helpers/create_index.js b/src/helpers/create_index.js index 2ffd46d..acf1b0f 100644 --- a/src/helpers/create_index.js +++ b/src/helpers/create_index.js @@ -3,14 +3,20 @@ var schema = { priority: { type: 'short' }, timeout: { type: 'long' }, process_expiration: { type: 'date' }, + created_by: { type: 'string', index: 'not_analyzed' }, created_at: { type: 'date' }, started_at: { type: 'date' }, completed_at: { type: 'date' }, attempts: { type: 'short' }, max_attempts: { type: 'short' }, status: { type: 'keyword' }, - output_content_type: { type: 'string', index: 'not_analyzed' }, - output: { type: 'object', enabled: false } + output: { + type: 'object', + properties: { + content_type: { type: 'string', index: 'not_analyzed' }, + content: { type: 'object', enabled: false } + } + } }; export default function createIndex(client, indexName) {