Skip to content

SearchIndexProps

Properties for defining a SearchIndex.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ots-searchindex

Initializer

import ros_cdk_ots
ros_cdk_ots.SearchIndexProps(
  field_schemas: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, FieldSchemasProperty]]],
  index_name: typing.Union[str, IResolvable],
  instance_name: typing.Union[str, IResolvable],
  table_name: typing.Union[str, IResolvable],
  index_setting: typing.Union[IResolvable, IndexSettingProperty] = None,
  index_sort: typing.Union[IResolvable, IndexSortProperty] = None
)

Properties

Name Type Description
field_schemas typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, FieldSchemasProperty]]] Property fieldSchemas: list of field_schema.
index_name typing.Union[str, ros_cdk_core.IResolvable] Property indexName: The index name.
instance_name typing.Union[str, ros_cdk_core.IResolvable] Property instanceName: The name of the OTS instance in which table will locate.
table_name typing.Union[str, ros_cdk_core.IResolvable] Property tableName: The table name of the OTS instance.
index_setting typing.Union[ros_cdk_core.IResolvable, IndexSettingProperty] Property indexSetting: Index settings.
index_sort typing.Union[ros_cdk_core.IResolvable, IndexSortProperty] Property indexSort: This parameter specifies how data is sorted.

field_schemasRequired

field_schemas: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, FieldSchemasProperty]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, FieldSchemasProperty]]]

Property fieldSchemas: list of field_schema.


index_nameRequired

index_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property indexName: The index name.


instance_nameRequired

instance_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property instanceName: The name of the OTS instance in which table will locate.


table_nameRequired

table_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property tableName: The table name of the OTS instance.


index_settingOptional

index_setting: typing.Union[IResolvable, IndexSettingProperty]

Property indexSetting: Index settings.


index_sortOptional

index_sort: typing.Union[IResolvable, IndexSortProperty]

Property indexSort: This parameter specifies how data is sorted.

By default, the data is sorted in the same way as the primary key of the table. If the search index contains NESTED fields, data is not sorted by default.