amend the schema - single output object, add cerated_by
This commit is contained in:
@@ -3,14 +3,20 @@ var schema = {
|
|||||||
priority: { type: 'short' },
|
priority: { type: 'short' },
|
||||||
timeout: { type: 'long' },
|
timeout: { type: 'long' },
|
||||||
process_expiration: { type: 'date' },
|
process_expiration: { type: 'date' },
|
||||||
|
created_by: { type: 'string', index: 'not_analyzed' },
|
||||||
created_at: { type: 'date' },
|
created_at: { type: 'date' },
|
||||||
started_at: { type: 'date' },
|
started_at: { type: 'date' },
|
||||||
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: 'keyword' },
|
||||||
output_content_type: { type: 'string', index: 'not_analyzed' },
|
output: {
|
||||||
output: { type: 'object', enabled: false }
|
type: 'object',
|
||||||
|
properties: {
|
||||||
|
content_type: { type: 'string', index: 'not_analyzed' },
|
||||||
|
content: { type: 'object', enabled: false }
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function createIndex(client, indexName) {
|
export default function createIndex(client, indexName) {
|
||||||
|
|||||||
Reference in New Issue
Block a user