This topic describes how to manage index tables using the cluster management system.
Terms
Collection: A collection is an index table in LindormSearch.
Shard: A shard refers to a shard of a collection.
Replica: A replica refers to a replica of a shard of a collection.
Create a collection
Log on to the cluster management system provided by the LindormSearch search engine service.
In the navigation pane on the left, click Collections.
Click Add Collection.

Configure the parameters described in the following table.
Parameter
Description
name
The name of the collection.
config set
The configuration set of the collection. Default value:
_indexer_default.numShards
The number of shards of the collection. We recommend that you set the value of this parameter to an integer multiple of the number of the LindormSearch nodes in your Lindorm instance. For example, if the Lindorm instance contains two LindormSearch nodes, you can set the value of numShards to
2or4. The value of the numShards parameter must be smaller than the value of the MaxShardsPerNode parameter.replicationFactor
The number of replicas of each shard of the collection. Default value:
1.maxShardsPerNode
The maximum number of shards on each node. Default value:
1.NoteThe values that you specify for the corresponding parameters must meet following condition:
maxShardsPerNode × Number of nodes ≥ numShards × replicationFactor. Otherwise, the system fails to create the collection.autoAddReplica
Specifies whether to restore shards on other nodes when the node on which specific shards reside becomes unavailable. We recommend that you set this parameter to
True.Click Add Collection in the dialog box.
Write data
In the navigation pane on the left, select the name of the created collection from the Collection Selector drop-down list.
Click Documents to go to the data writing page.
Select CSV from the Document Type drop-down list.
Enter the following code in the Document(s) field.
id,update_version_l,name_s,age_i 1,1,zhangsan,10 2,2,lisi,20 3,3,wangwu,30
NoteThe preceding sample code writes three rows of data. Each row includes four columns. The
idcolumn andupdate_version_lcolumn are required because they are system-defined columns. The suffix _s of name_s indicates that the column is of the STRING data type, and the suffix _i of age_i indicates that the column is of the INTEGER data type.Click Submit Document.
Query data
In the navigation pane on the left, click Query.
Enter conditions in the q field.
Click Execute Query. The following figure shows the query result.

Delete index
In the navigation pane on the left, click Collections.
Select the target collection and click Delete.
Enter the name of the target collection in the Collection text box, as shown in the following figure.

Click Delete.