Drop Field

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:

ParametersDescriptionRequired
table_nameTable to drop fieldsYes
database_nameDatabase where the table is locatedNo, defaults to "default" database
fieldsSet of fields to be droppedYes
Table 4 Drop Column (Restful API)

📘

Kindly note

  1. After dropping vector fields, all vector indexes created on these fields will be deleted automatically.
  2. After dropping scalar fields, all scalar indexes created on these fields will be deleted automatically.