move constants to lib root

This commit is contained in:
2016-07-11 11:20:44 -07:00
parent 27390fef44
commit c6986e3677
12 changed files with 32 additions and 30 deletions

View File

@@ -1,4 +1,4 @@
import { defaultSettings } from './constants';
import { DEFAULT_SETTING_DOCTYPE } from '../constants';
const schema = {
jobtype: { type: 'string', index: 'not_analyzed' },
@@ -22,7 +22,7 @@ const schema = {
}
};
export default function createIndex(client, indexName, doctype = defaultSettings.DEFAULT_SETTING_DOCTYPE, settings = {}) {
export default function createIndex(client, indexName, doctype = DEFAULT_SETTING_DOCTYPE, settings = {}) {
const indexBody = { mappings : {} };
indexBody.mappings[doctype] = { properties: schema };