Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
3.3 kB
0
Indexable
Never
curl --location --request PUT 'localhost:9200/_index_template/call_recording_test_index_template' \
--header 'Content-Type: application/json' \
--data '{
    "index_patterns": [
        "call_recording_test_*"
    ],
    "template": {
        "settings": {
            "number_of_shards": 1
        },
        "mappings": {
            "properties": {
                "recording_id": {
                    "type": "keyword"
                },
                "unique_key": {
                    "type": "keyword"
                },
                "vertical": {
                    "type": "keyword"
                },
                "product": {
                    "type": "keyword"
                },
                "region": {
                    "type": "keyword"
                },
                "location": {
                    "type": "keyword"
                },
                "agency_id": {
                    "type": "keyword"
                },
                "agency_name": {
                    "type": "text"
                },
                "agent_id": {
                    "type": "keyword"
                },
                "agent_name": {
                    "type": "text",
                    "index": false
                },
                "calling_timestamp": {
                    "type": "date"
                },
                "call_recording_url": {
                    "type": "keyword",
                    "index": false
                },
                "call_recording_transcript_url": {
                    "type": "keyword",
                    "index": false
                },
                "call_recording_file_storage_bytes": {
                    "type": "long"
                },
                "customer_account_number": {
                    "type": "keyword"
                },
                "customer_mobile_number": {
                    "type": "keyword"
                },
                "allocation_bucket": {
                    "type": "keyword",
                    "index": false
                },
                "calling_type": {
                    "type": "keyword"
                },
                "is_ztp": {
                    "type": "keyword"
                },
                "is_rude": {
                    "type": "keyword"
                },
                "is_fatal": {
                    "type": "keyword"
                },
                "latest_audit_status": {
                    "type": "keyword"
                },
                "latest_audit_type": {
                    "type": "keyword"
                },
                "latest_audit_remark": {
                    "type": "text",
                    "index": false
                },
                "latest_audited_by": {
                    "type": "keyword"
                },
                "latest_audit_timestamp": {
                    "type": "date"
                },
                "created_timestamp": {
                    "type": "date",
                    "index": false
                },
                "updated_timestamp": {
                    "type": "date",
                    "index": false
                }
            }
        },
        "aliases": {
            "call_recording_test_alias": {}
        }
    },
    "version": 1
}'
Leave a Comment