NB! Операция вызывает удаление индекса и хранящихся там данных. Вас предупредили..
- Удалить старый индекс: curl -XDELETE 'localhost:9200/sed_test_db_core_ws_documents'
- Создать маппинг для нового индекса (Внимание! большой запрос): curl -H 'Content-Type: application/json' -X PUT -d '{"mappings":{"data":{"pr_performance_official_id":{"type":"string"},"approving_performance_official_name":{"type":"string"},"archived":{"type":"boolean"},"attachment":{"type":"string"},"attachment_description":{"type":"string"},"canceled_person_id":{"type":"string"},"canceled_step_id":{"type":"string"},"canceled_text":{"type":"string"},"character":{"type":"string"},"character_s":{"type":"string"},"citizen_add_info":{"type":"string"},"citizen_answer_to_applicant":{"type":"boolean"},"citizen_answer_type":{"type":"string"},"citizen_audit_result":{"type":"string"},"citizen_audit_result_text":{"type":"string"},"citizen_audit_status":{"type":"string"},"citizen_audit_status_text":{"type":"string"},"citizen_book_date":{"type":"date","format":"strict_date_optional_time||epoch_millis"},"citizen_book_number":{"type":"string"},"citizen_book_required":{"type":"boolean"},"citizen_came_as_original":{"type":"string"},"citizen_canceled_image_id":{"type":"string"},"citizen_consideration_result":{"type":"string"},"citizen_consideration_result_text":{"type":"string"},"citizen_criminal_cases":{"type":"string"},"citizen_date":{"type":"date","format":"strict_date_optional_time||epoch_millis"},"citizen_discipline":{"type":"boolean"},"citizen_document_images_ids":{"type":"object","enabled":false},"citizen_external_number":{"type":"string"},"citizen_field_work":{"type":"boolean"},"citizen_head_organization_ids":{"type":"string"},"citizen_image_address_text":{"type":"string"},"citizen_image_head_id":{"type":"string"},"citizen_image_id":{"type":"string"},"citizen_image_preview_id":{"type":"string"},"citizen_image_required":{"type":"string"},"citizen_image_text":{"type":"string"},"citizen_measures_taken":{"type":"boolean"},"citizen_official_id":{"type":"string"},"citizen_official_name":{"type":"string"},"citizen_official_type":{"type":"string"},"citizen_organization_id":{"type":"string"},"citizen_organization_name":{"type":"string"},"citizen_organization_type":{"type":"string"},"citizen_problems_solved":{"type":"boolean"},"citizen_second_date":{"type":"date","format":"strict_date_optional_time||epoch_millis"},"citizen_stop_writing_cause_texts":{"type":"string"},"citizen_third_date":{"type":"date","format":"strict_date_optional_time||epoch_millis"},"citizen_type":{"type":"string"},"citizen_typical_reason":{"type":"string"},"citizen_typical_reason_text":{"type":"string"},"citizen_whom_to_answer_name":{"type":"string"},"comment":{"type":"string"},"control_deadline_change_id":{"type":"string"},"control_deadline_document_uid":{"type":"string"},"created_in_ws":{"type":"boolean"},"decision_id":{"type":"string"},"document_type":{"type":"string"},"document_type_s":{"type":"string"},"external_document_number":{"type":"string"},"id":{"type":"string"},"image_created":{"type":"boolean"},"is_ddo":{"type":"boolean"},"is_ddo_document":{"type":"boolean"},"is_intermediate_answer":{"type":"boolean"},"is_performance_document":{"type":"boolean"},"journal_index":{"type":"string"},"journal_name":{"type":"string"},"journal_type":{"type":"string"},"linked_exemplars_hash":{"type":"object","enabled":false},"linkeds":{"properties":{"_id":{"type":"string"},"id":{"type":"string"},"registration_date":{"type":"date","format":"strict_date_optional_time||epoch_millis"},"registration_number_s":{"type":"string"},"uid":{"type":"string"}}},"links":{"type":"string"},"name":{"type":"string"},"need_registrate":{"type":"boolean"},"order_type":{"type":"string"},"order_type_text":{"type":"string"},"pages_count":{"type":"string"},"provider_id":{"type":"string"},"receipt_date":{"type":"date","format":"strict_date_optional_time||epoch_millis"},"registered":{"type":"boolean"},"registration_date":{"type":"date","format":"strict_date_optional_time||epoch_millis"},"registration_number_s":{"type":"string"},"returned":{"type":"boolean"},"security_classification":{"type":"string"},"security_classification_text":{"type":"string"},"selected_provider_id":{"type":"string"},"send_notification":{"type":"boolean"},"short_description":{"type":"string"},"signers":{"properties":{"organisation_name":{"type":"string"},"oshs_id":{"type":"string"},"oshs_name":{"type":"string"},"oshs_type":{"type":"string"}}},"state_registration":{"type":"boolean"},"the_latest_document_image_ever":{"type":"date","format":"strict_date_optional_time||epoch_millis"},"uid":{"type":"string"},"urgency":{"type":"string"},"urgency_text":{"type":"string"},"user_id":{"type":"string"},"vacation_raport_country_id":{"type":"string"},"vacation_raport_country_text":{"type":"string"},"vacation_raport_rf_region_id":{"type":"string"},"vacation_raport_rf_region_text":{"type":"string"},"vacation_raport_with_departure":{"type":"boolean"},"written_off_by_id":{"type":"string"},"written_off_by_name":{"type":"string"},"year":{"type":"long"}}}}}' http://127.0.0.1:9200/sed_test_db_core_ws_documents