Skip to content

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.ListFieldSchemasProperty> 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.

fieldSchemasRequired

public java.lang.Object getFieldSchemas();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListFieldSchemasProperty>

Property fieldSchemas: list of field_schema.


indexNameRequired

public java.lang.Object getIndexName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property indexName: The index name.


instanceNameRequired

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.


tableNameRequired

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.


indexSettingOptional

public java.lang.Object getIndexSetting();

Property indexSetting: Index settings.


indexSortOptional

public java.lang.Object getIndexSort();

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.