Untitled

 avatar
unknown
plain_text
a month ago
1.1 kB
2
Indexable
curl --location --request PUT 'localhost:9200/audit_history_test' \
--header 'Content-Type: application/json' \
--data '{
    "settings": {
        "number_of_shards": 1
    },
    "mappings": {
        "properties": {
            "recording_id": {
                "type": "keyword"
            },
            "unique_key": {
                "type": "keyword"
            },
            "audited_by": {
                "type": "keyword"
            },
            "audit_remark": {
                "type": "text"
            },
            "audit_timestamp": {
                "type": "date"
            },
            "is_ztp": {
                "type": "keyword"
            },
            "is_rude": {
                "type": "keyword"
            },
            "is_process_deviation": {
                "type": "keyword"
            },
            "is_fatal": {
                "type": "keyword"
            },
            "created_date": {
                "type": "date",
                "index": false
            },
            "updated_date": {
                "type": "date",
                "index": false
            }
        }
    }
}'
Leave a Comment