Created
June 26, 2013 16:25
-
-
Save dadoonet/5868926 to your computer and use it in GitHub Desktop.
Mapping not fully read
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XDELETE http://localhost:9200/test; echo | |
curl -XPUT http://localhost:9200/test; echo | |
curl -XPUT http://localhost:9200/test/ticket/_mapping -d '{ | |
"ticket":{ | |
"properties":{ | |
"DOC_CREATION_DATE":{ | |
"type":"date", | |
"format":"dateOptionalTime" | |
}, | |
"DOC_CREATION_TIME":{ | |
"type":"string" | |
}, | |
"DOC_FINISHED":{ | |
"type":"string" | |
}, | |
"DOC_FINISHED_DATE":{ | |
"type":"date", | |
"format":"dateOptionalTime" | |
}, | |
"DOC_FINISHED_TIME":{ | |
"type":"string" | |
}, | |
"DOC_FINISHER":{ | |
"type":"nested", | |
"properties":{ | |
"firstname":{ | |
"type":"string" | |
}, | |
"lastname":{ | |
"type":"string" | |
}, | |
"login":{ | |
"type":"string" | |
} | |
} | |
}, | |
"DOC_ID":{ | |
"type":"string" | |
}, | |
"DOC_INITIATOR":{ | |
"type":"nested", | |
"properties":{ | |
"firstname":{ | |
"type":"string" | |
}, | |
"lastname":{ | |
"type":"string" | |
}, | |
"login":{ | |
"type":"string" | |
} | |
} | |
}, | |
"DOC_NUM":{ | |
"type":"string" | |
}, | |
"LABEL":{ | |
"type":"string" | |
}, | |
"LAUNCH":{ | |
"type":"nested", | |
"properties":{ | |
"FORMULARY":{ | |
"type":"nested", | |
"properties":{ | |
"TABS":{ | |
"type":"nested", | |
"properties":{ | |
"FIELDS":{ | |
"type":"nested", | |
"properties":{ | |
"FIELD_LABEL":{ | |
"type":"string" | |
}, | |
"FIELD_NAME":{ | |
"type":"string" | |
}, | |
"FIELD_TYPE":{ | |
"type":"string" | |
}, | |
"FIELD_VALUE":{ | |
"type":"string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"IS_ATOS_RESTRICTED":{ | |
"type":"string" | |
}, | |
"IS_INTERNAL":{ | |
"type":"string" | |
}, | |
"LAUNCH_NAME":{ | |
"type":"string" | |
}, | |
"OBJECT":{ | |
"type":"nested", | |
"properties":{ | |
"DOMAIN":{ | |
"type":"nested", | |
"properties":{ | |
"DOMAIN_CODE":{ | |
"type":"string" | |
}, | |
"DOMAIN_LABEL":{ | |
"type":"string" | |
}, | |
"SERVICE":{ | |
"type":"nested", | |
"properties":{ | |
"BU":{ | |
"properties":{ | |
"BU_CODE":{ | |
"type":"string" | |
}, | |
"BU_LABEL":{ | |
"type":"string" | |
} | |
} | |
}, | |
"SERVICE_CODE":{ | |
"type":"string" | |
}, | |
"SERVICE_LABEL":{ | |
"type":"string" | |
} | |
} | |
} | |
} | |
}, | |
"OBJECT_CODE":{ | |
"type":"string" | |
}, | |
"OBJECT_LABEL":{ | |
"type":"string" | |
}, | |
"OBJECT_SECURITY":{ | |
"type":"string" | |
} | |
} | |
}, | |
"TYPE":{ | |
"type":"nested", | |
"properties":{ | |
"GROUP":{ | |
"properties":{ | |
"NAME":{ | |
"type":"string" | |
} | |
} | |
}, | |
"TYPE_NAME":{ | |
"type":"string" | |
} | |
} | |
}, | |
"WORKFLOW":{ | |
"type":"nested", | |
"properties":{ | |
"WORKFLOW_MUSTBEVALIDATED":{ | |
"type":"string" | |
}, | |
"WORKFLOW_SECURITY":{ | |
"type":"string" | |
}, | |
"WORKFLOW_URL":{ | |
"type":"string" | |
} | |
} | |
} | |
} | |
}, | |
"VALIDATED":{ | |
"type":"string" | |
}, | |
"VERSIONS":{ | |
"type":"nested", | |
"properties":{ | |
"ACTIVE_VERSION":{ | |
"type":"string" | |
}, | |
"DATA_COMMENTS":{ | |
"type":"nested", | |
"properties":{ | |
"COMMENT_DATE":{ | |
"type":"date", | |
"format":"dateOptionalTime" | |
}, | |
"COMMENT_TIME":{ | |
"type":"string" | |
}, | |
"COM_CATEGORY":{ | |
"type":"string" | |
}, | |
"COM_COMMENT":{ | |
"type":"string" | |
}, | |
"COM_CREATION_ENTITY":{ | |
"type":"string" | |
}, | |
"COM_CREATION_USER":{ | |
"type":"nested", | |
"properties":{ | |
"firstname":{ | |
"type":"string" | |
}, | |
"lastname":{ | |
"type":"string" | |
}, | |
"login":{ | |
"type":"string" | |
} | |
} | |
}, | |
"COM_CRITICITY":{ | |
"type":"string" | |
}, | |
"COM_HTML_COMMENT":{ | |
"type":"string" | |
}, | |
"COM_IS_PUBLIC":{ | |
"type":"string" | |
}, | |
"COM_TYPE":{ | |
"type":"string" | |
} | |
} | |
}, | |
"DATA_FIELDS":{ | |
"type":"nested", | |
"properties":{ | |
"FIELD_NAME":{ | |
"type":"string" | |
}, | |
"FIELD_VALUE":{ | |
"type":"string" | |
} | |
} | |
}, | |
"DATA_ITEMS":{ | |
"type":"nested", | |
"properties":{ | |
"ITEM_CATEGORY":{ | |
"type":"string" | |
}, | |
"ITEM_CREATION_USER":{ | |
"type":"nested", | |
"properties":{ | |
"firstname":{ | |
"type":"string" | |
}, | |
"lastname":{ | |
"type":"string" | |
}, | |
"login":{ | |
"type":"string" | |
} | |
} | |
}, | |
"ITEM_DATE":{ | |
"type":"date", | |
"format":"dateOptionalTime" | |
}, | |
"ITEM_DESCRIPTION":{ | |
"type":"string" | |
}, | |
"ITEM_IS_IN_REFERENTIAL":{ | |
"type":"string" | |
}, | |
"ITEM_IS_PUBLIC":{ | |
"type":"string" | |
}, | |
"ITEM_NAME":{ | |
"type":"string" | |
}, | |
"ITEM_TIME":{ | |
"type":"string" | |
} | |
} | |
}, | |
"DATA_LINKS":{ | |
"type":"nested", | |
"properties":{ | |
"LINK_CATEGORY":{ | |
"type":"string" | |
}, | |
"LINK_COMPLETE_NAME":{ | |
"type":"string" | |
}, | |
"LINK_CREATION_USER":{ | |
"type":"nested", | |
"properties":{ | |
"firstname":{ | |
"type":"string" | |
}, | |
"lastname":{ | |
"type":"string" | |
}, | |
"login":{ | |
"type":"string" | |
} | |
} | |
}, | |
"LINK_DATE":{ | |
"type":"string" | |
}, | |
"LINK_IS_PUBLIC":{ | |
"type":"string" | |
}, | |
"LINK_IS_URL":{ | |
"type":"string" | |
}, | |
"LINK_NAME":{ | |
"type":"string" | |
} | |
} | |
}, | |
"DATA_SERVICE_CALL_CONTACTS":{ | |
"type":"nested", | |
"properties":{ | |
"CONCACT_ADDRESS":{ | |
"type":"string" | |
}, | |
"CONCACT_ADDRESS2":{ | |
"type":"string" | |
}, | |
"CONCACT_CELL_PHONE":{ | |
"type":"string" | |
}, | |
"CONCACT_CODE":{ | |
"type":"string" | |
}, | |
"CONCACT_EMAIL":{ | |
"type":"string" | |
}, | |
"CONCACT_PHONE":{ | |
"type":"string" | |
}, | |
"CONTACT_CALL_TYPE":{ | |
"type":"string" | |
}, | |
"CONTACT_COMMENT":{ | |
"type":"string" | |
}, | |
"CONTACT_CONCACT_EMAIL":{ | |
"type":"string" | |
}, | |
"CONTACT_CREATION_USER":{ | |
"properties":{ | |
"firstname":{ | |
"type":"string" | |
}, | |
"lastname":{ | |
"type":"string" | |
}, | |
"login":{ | |
"type":"string" | |
} | |
} | |
}, | |
"CONTACT_DATE":{ | |
"type":"date", | |
"format":"dateOptionalTime" | |
}, | |
"CONTACT_DEPARTMENT":{ | |
"type":"string" | |
}, | |
"CONTACT_DIRECTION":{ | |
"type":"string" | |
}, | |
"CONTACT_ENTITY":{ | |
"type":"string" | |
}, | |
"CONTACT_IS_PUBLIC":{ | |
"type":"string" | |
}, | |
"CONTACT_MEDIA":{ | |
"type":"string" | |
}, | |
"CONTACT_NAME":{ | |
"type":"string" | |
}, | |
"CONTACT_ORGANIZATION":{ | |
"type":"string" | |
}, | |
"CONTACT_ORGANIZATION_ADDRESS":{ | |
"type":"string" | |
}, | |
"CONTACT_ORGANIZATION_ADDRESS2":{ | |
"type":"string" | |
}, | |
"CONTACT_ORGANIZATION_CODE":{ | |
"type":"string" | |
}, | |
"CONTACT_ORGANIZATION_EMAIL":{ | |
"type":"string" | |
}, | |
"CONTACT_ORGANIZATION_PHONE":{ | |
"type":"string" | |
}, | |
"CONTACT_PRODUCT":{ | |
"type":"string" | |
}, | |
"CONTACT_QUALIFICATION":{ | |
"type":"string" | |
}, | |
"CONTACT_SIRET":{ | |
"type":"string" | |
}, | |
"CONTACT_TIME":{ | |
"type":"string" | |
}, | |
"CONTACT_TYPE":{ | |
"type":"string" | |
} | |
} | |
}, | |
"VERSION_CREATION_DATE":{ | |
"type":"date", | |
"format":"dateOptionalTime" | |
}, | |
"VERSION_CREATION_TIME":{ | |
"type":"string" | |
}, | |
"VERSION_CREATION_USER":{ | |
"type":"nested", | |
"properties":{ | |
"firstname":{ | |
"type":"string" | |
}, | |
"lastname":{ | |
"type":"string" | |
}, | |
"login":{ | |
"type":"string" | |
} | |
} | |
}, | |
"VERSION_NUMBER":{ | |
"type":"string" | |
}, | |
"WORKFLOW_HISTORY":{ | |
"type":"nested", | |
"properties":{ | |
"WORKFLOW_HISTORY_CONSIDERING_DATE":{ | |
"type":"string" | |
}, | |
"WORKFLOW_HISTORY_CONSIDERING_USER":{ | |
"type":"string" | |
}, | |
"WORKFLOW_HISTORY_ENTITY":{ | |
"type":"string" | |
}, | |
"WORKFLOW_HISTORY_OUT_STATE":{ | |
"type":"string" | |
}, | |
"WORKFLOW_HISTORY_STATE":{ | |
"type":"string" | |
}, | |
"WORKFLOW_HISTORY_STEP_NUMBER":{ | |
"type":"string" | |
}, | |
"WORKFLOW_HISTORY_TODO":{ | |
"type":"string" | |
}, | |
"WORKFLOW_HISTORY_TRANSMITTED_DATE":{ | |
"type":"date", | |
"format":"dateOptionalTime" | |
}, | |
"WORKFLOW_HISTORY_TRANSMITTED_USER":{ | |
"type":"string" | |
} | |
} | |
}, | |
"WORKFLOW_STEPS":{ | |
"type":"nested", | |
"properties":{ | |
"WORKFLOW_STEP_DESTINATION":{ | |
"type":"string" | |
}, | |
"WORKFLOW_STEP_NATURE":{ | |
"type":"string" | |
}, | |
"WORKFLOW_STEP_NUMBER":{ | |
"type":"string" | |
}, | |
"WORKFLOW_STEP_SYNCHRO":{ | |
"type":"string" | |
}, | |
"WORKFLOW_STEP_TODO":{ | |
"type":"string" | |
} | |
} | |
} | |
} | |
} | |
} | |
}'; echo | |
curl -XGET http://localhost:9200/test/ticket/_mapping?pretty ; echo | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment