Elasticsearch操作
curl -XPUT http://localhost:9200/twitter -d'
{
"settings" : {
"index" : {
"number_of_shards" : 3,
"number_of_replicas" : 2
}
}
}'123456789curl -XPUT http://localhost:9200/test -d'
{
"settings" : {
"number_of_shards" : 1
},
"mappings" : {
"type1" : {
"properties" : {
"field1" : { "type" : "text" }
}
}
}
}'12345678910111213Last updated