distiguish the doctype from the jobtype

update tests and mock elasticsearch client
This commit is contained in:
2016-05-12 12:20:49 -07:00
parent 3375335d24
commit 609e81fdef
4 changed files with 32 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
import { defaultSettings } from './constants';
const schema = {
type: { type: 'string', index: 'not_analyzed' },
jobtype: { type: 'string', index: 'not_analyzed' },
payload: { type: 'object', enabled: false },
priority: { type: 'short' },
timeout: { type: 'long' },