Databases 5 min read

Discover Elasticvue: A Lightweight Yet Powerful Elasticsearch GUI

This guide introduces Elasticvue, a lightweight and powerful Elasticsearch GUI, walks through downloading and installing the tool, configuring clusters, creating and managing indices via both GUI and REST, and demonstrates adding and viewing data with practical code examples.

Su San Talks Tech
Su San Talks Tech
Su San Talks Tech
Discover Elasticvue: A Lightweight Yet Powerful Elasticsearch GUI

1. Download and Install

Enter the download page and obtain the appropriate package for your operating system (e.g., the .dmg file for macOS). After installation, launch Elasticvue by clicking its icon.

2. Cluster Configuration

Click the "Add ELASTICSEARCH cluster" button and choose a verification method (none, username/password, or API key). Test the connection; a success message indicates the cluster is linked and the home page displays node information and health status.

The home page offers operations such as Nodes, Shards, Indices, Search, REST, Snapshots, and Settings.

3. Create Index

Creating an index in Elasticsearch can be done with a PUT request. Define settings and mappings as needed. Example mapping:

PUT /assetstestdataresources.filecenter.directory
{
  "mappings": {
    "properties": {
      "dir_name": {"type": "text", "fields": {"keyword": {"type": "keyword"}}},
      "entity_type": {"type": "keyword"},
      "entity_id": {"type": "keyword"},
      "add_time": {"type": "date", "format": "yyyy-MM-dd HH:mm:ss||epoch_millis"},
      "u_time": {"type": "date", "format": "yyyy-MM-dd HH:mm:ss||epoch_millis"},
      "tags": {"type": "text", "fields": {"keyword": {"type": "keyword"}}}
    }
  }
}

The PUT method creates or updates the index and its mappings, defining the document structure and field types.

3.1 REST Interface Creation

Click the REST button, paste the example mapping into the left pane, and send the request. The right pane returns the response.

4. Add Data

Use a POST request to add documents to the index. Example request format:

PUT /<index-name>/_doc/<document-id>
{
  "field1": "value1",
  "field2": "value2"
  // more fields...
}

Adding a sample document:

POST /assetstestdataresources.filecenter.directory/_doc/1
{
  "dir_name": "供应商:KHBH-20241016-0001",
  "entity_type": "info_supplier",
  "entity_id": "1",
  "add_time": "2024-11-06 10:59:00",
  "u_time": "2024-11-06 10:59:00",
  "tags": ["供应商", "2024年", "新合作"]
}

5. View Index

Navigate to the Index section, select the created index, and view all documents. Use the action buttons on the right to see detailed data for each document.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

GUIElasticsearchIndex Managementelasticvue
Su San Talks Tech
Written by

Su San Talks Tech

Su San, former staff at several leading tech companies, is a top creator on Juejin and a premium creator on CSDN, and runs the free coding practice site www.susan.net.cn.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.