add type field, switch to string types

should allow elasticsearch 2.x use
This commit is contained in:
2016-05-12 11:49:54 -07:00
parent 0020050f3f
commit 3375335d24

View File

@@ -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: {