1st Curl Command
unknown
plain_text
2 years ago
677 B
17
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