Hippo supports dropping fields from a table dynamically.
curl -u shiva:shiva -XPOST 'localhost:8902/hippo/v1/book/_drop_columns?database_name={database_name}&pretty' -H 'Content-Type: application/json' -d'{
"fields": ["book_word_count", "book_intro"]
}';
Result:
{
"acknowledged" : true
}
Parameter description:
Parameters | Description | Required |
---|---|---|
table_name | Table to drop fields | Yes |
database_name | Database where the table is located | No, defaults to "default" database |
fields | Set of fields to be dropped | Yes |
Kindly note
- After dropping vector fields, all vector indexes created on these fields will be deleted automatically.
- After dropping scalar fields, all scalar indexes created on these fields will be deleted automatically.