curl -u shiva:shiva -XPUT 'localhost:8902/hippo/v1/{table}?pretty' -H 'Content-Type: application/json' -d'{
"settings": {
"number_of_shards" : 1,
"number_of_replicas" : 1
},
"schema": {
"auto_id": false,
"fields": [
{
"name": "book_id",
"is_primary_key": true,
"data_type": "int64"
},
{
"name": "word_count",
"is_primary_key": false,
"data_type": "int64"
},
{
"name": "book_intro",
"data_type": "binary_vector",
"is_primary_key": false,
"type_params": {
"dimension" : 8
}
}
]
}
}';
Result:
{
"acknowledged" : true
}