Create and populate a simple Elasticsearch index
curl -XPUT http://dev01:9200/test \
-H 'Content-type:application/json' -d'{"
settings": {
"number_of_shards":1,
"number_of_replicas":1
},
"mappings": {
"type": {
"properties": {
"f1": {
"type":"string"
},
"f2": {
"type":"string"
},
"f3": {
"type":"string"
}
}
}
}
}'
No comments:
Post a Comment