add type field, switch to string types
should allow elasticsearch 2.x use
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import { defaultSettings } from './constants';
|
import { defaultSettings } from './constants';
|
||||||
|
|
||||||
const schema = {
|
const schema = {
|
||||||
|
type: { type: 'string', index: 'not_analyzed' },
|
||||||
payload: { type: 'object', enabled: false },
|
payload: { type: 'object', enabled: false },
|
||||||
priority: { type: 'short' },
|
priority: { type: 'short' },
|
||||||
timeout: { type: 'long' },
|
timeout: { type: 'long' },
|
||||||
@@ -11,7 +12,7 @@ const schema = {
|
|||||||
completed_at: { type: 'date' },
|
completed_at: { type: 'date' },
|
||||||
attempts: { type: 'short' },
|
attempts: { type: 'short' },
|
||||||
max_attempts: { type: 'short' },
|
max_attempts: { type: 'short' },
|
||||||
status: { type: 'keyword' },
|
status: { type: 'string', index: 'not_analyzed' },
|
||||||
output: {
|
output: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
|
|||||||
Reference in New Issue
Block a user