Request body for POST .../indexes
| Name | Type | Description | Notes |
|---|---|---|---|
| index_name | str | ||
| index_type | str | Index type: "sorted" (default), "bm25", or "vector" | [optional] |
| metric | str | Distance metric for vector indexes: "l2" (default), "cosine", or "dot". Only relevant when index_type = "vector". | [optional] |
| sort_columns | List[str] | [optional] | |
| text_columns | List[str] | Text columns for BM25 indexes | [optional] |
| vector_columns | List[str] | Vector column for vector indexes (exactly one entry required) | [optional] |
from hotdata.models.create_index_request import CreateIndexRequest
# TODO update the JSON string below
json = "{}"
# create an instance of CreateIndexRequest from a JSON string
create_index_request_instance = CreateIndexRequest.from_json(json)
# print the JSON string representation of the object
print(CreateIndexRequest.to_json())
# convert the object into a dict
create_index_request_dict = create_index_request_instance.to_dict()
# create an instance of CreateIndexRequest from a dict
create_index_request_from_dict = CreateIndexRequest.from_dict(create_index_request_dict)