All Products
Search
Document Center

Lindorm:Use Search Shell to connect to and use LindormSearch

Last Updated:Mar 28, 2026

Search Shell is a command-line database management tool for Lindorm. Install it on your local machine or an Elastic Compute Service (ECS) instance to connect to LindormSearch and manage collections, indexes, and configuration sets from the command line.

Note

Search Shell cannot connect to single-node Lindorm instances. If your instance is single-node, use SQL to connect to and use LindormSearch instead.

Prerequisites

Before you begin, ensure that you have:

Install and configure Search Shell

Use a non-root user credential on the ECS instance when performing these steps.

  1. Log on to the ECS instance and download the Search Shell package:

    wget https://hbaseuepublic.oss-cn-beijing.aliyuncs.com/lindorm-search-cli.tar.gz
  2. Extract the package:

    tar -xzvf lindorm-search-cli.tar.gz
  3. Open bin/search.in.sh and set ZK_HOST to the LindormSearch endpoint for Solr. Find the endpoint in the Solr Compatibility Address section of the Lindorm console. For more information, see View endpoints.

    ZK_HOST="host:port"

Run commands

All Search Shell commands run from the lindorm-search-cli/bin directory. Navigate to it first:

cd lindorm-search-cli/bin

To list all available commands, run:

./search-cli

Manage collections

Create a collection

./search-cli create_collection -c <collection-name> -n <configset-name> -shards <shard-count>
ParameterRequiredDescriptionExample
-cYesName of the collection to createtestIndex
-nYesName of the configuration set to use_indexer_default
-shardsYesNumber of shards to split the collection into2

Example: Create a collection named testIndex using the default configuration set with 2 shards:

./search-cli create_collection -c testIndex -n _indexer_default -shards 2

List collections

./search-cli list_collections

Manage configuration sets

Search Shell supports the following ZooKeeper (zk) subcommands for configuration set management:

./search-cli zk downconfig -d <local-dir> -n <configset-name>
./search-cli zk upconfig  -d <local-dir> -n <configset-name>
./search-cli zk ls <zk-path>

Download a configuration set

Download a configuration set from ZooKeeper to a local directory:

./search-cli zk downconfig -d . -n _indexer_default

This downloads the default configuration set _indexer_default into a conf subfolder in the current directory. Use the files in conf as a starting point for custom configuration sets.

Upload a configuration set

After modifying your configuration files, upload them back to ZooKeeper:

./search-cli zk upconfig -d conf -n myConf

Replace myConf with the name for your custom configuration set.

List configuration sets

./search-cli zk ls /configs

Create an index with a custom configuration set

After uploading a custom configuration set, create a collection that uses it:

./search-cli create_collection -c myIndex -n myConf -shards 2

What's next