SearchIndexProps
Properties for defining a SearchIndex
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ots-searchindex
Initializer
import com.aliyun.ros.cdk.ots.SearchIndexProps;
SearchIndexProps.builder()
.fieldSchemas(IResolvable)
.fieldSchemas(java.util.List<IResolvable)
.fieldSchemas(FieldSchemasProperty>)
.indexName(java.lang.String)
.indexName(IResolvable)
.instanceName(java.lang.String)
.instanceName(IResolvable)
.tableName(java.lang.String)
.tableName(IResolvable)
// .indexSetting(IResolvable)
// .indexSetting(IndexSettingProperty)
// .indexSort(IResolvable)
// .indexSort(IndexSortProperty)
.build();
Properties
Name | Type | Description |
---|---|---|
fieldSchemas |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property fieldSchemas: list of field_schema. |
indexName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property indexName: The index name. |
instanceName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceName: The name of the OTS instance in which table will locate. |
tableName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property tableName: The table name of the OTS instance. |
indexSetting |
com.aliyun.ros.cdk.core.IResolvable OR IndexSettingProperty |
Property indexSetting: Index settings. |
indexSort |
com.aliyun.ros.cdk.core.IResolvable OR IndexSortProperty |
Property indexSort: This parameter specifies how data is sorted. |
fieldSchemas
Required
public java.lang.Object getFieldSchemas();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
FieldSchemasProperty>
Property fieldSchemas: list of field_schema.
indexName
Required
public java.lang.Object getIndexName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property indexName: The index name.
instanceName
Required
public java.lang.Object getInstanceName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceName: The name of the OTS instance in which table will locate.
tableName
Required
public java.lang.Object getTableName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property tableName: The table name of the OTS instance.
indexSetting
Optional
public java.lang.Object getIndexSetting();
- Type: com.aliyun.ros.cdk.core.IResolvable OR IndexSettingProperty
Property indexSetting: Index settings.
indexSort
Optional
public java.lang.Object getIndexSort();
- Type: com.aliyun.ros.cdk.core.IResolvable OR 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.