1st Curl Command

 avatar
unknown
plain_text
a year ago
677 B
6
Indexable
curl --location --request PUT 'localhost:9200/agency_data_test' \
--header 'Content-Type: application/json' \
--data '{
    "settings": {
        "number_of_shards": 1
    },
    "mappings": {
        "properties": {
            "agency_id": {
                "type": "keyword"
            },
            "agency_name": {
                "type": "text"
            },
            "is_active": {
                "type": "boolean"
            },
            "created_date": {
                "type": "date",
                "index": false
            },
            "updated_date": {
                "type": "date",
                "index": false
            }
        }
    }
}'
Editor is loading...
Leave a Comment