MCPcopy
hub / github.com/qax-os/ElasticHD

github.com/qax-os/ElasticHD @1.4 sqlite

repository ↗ · DeepWiki ↗ · release 1.4 ↗
54 symbols 130 edges 31 files 25 documented · 46%
README

ElasticHD

Build Status Go Documentation Go Report Card license Release GitHub issues

ElasticHD is a ElasticSearch visual management tool. It does not require any software. It works in your web browser, allowing you to manage and monitor your ElasticSearch clusters from anywhere at any time. Built on responsive CSS design, ElasticHD adjusts itself to any screen size on any device.The following functions are supported: * ES Real time data search and query * ES Dashboard data visualization * ES Indices Management * Managing Type Mappings (在线修改、查看、上传) * SQL Converts to Elasticsearch DSL * ES 基本查询文档 * Device Friendly

支持权限认证

支持有权限认证的ElasticSearch服务器,url格式:http://user:password@host:port

Installation

Precompiled binaries for supported operating systems are available.

Basic Usage

  • linux and MacOs use ElasticHD 下载对应的elasticHD版本,unzip xxx_elasticHd_xxx.zip 修改权限 chmod 0777 ElasticHD 可指定ip端口运行elastichd ./ElasticHD -p 127.0.0.1:9800 默认 ip和端口也是这个
  • windows 直接下载对应windows版本,解压,双击运行。当然想指定端口的话同linux

No Software to Install

ElasticHD does not require any software. It works in your web browser, allowing you to manage and monitor your ElasticSearch clusters from anywhere at any time. Built on responsive CSS design, ElasticHD adjusts itself to any screen size on any device.

Es version support

Compatible with all ES versions

Contributing

Contributions are welcome! Open a pull request to fix a bug, or open an issue to discuss a new feature or change.

ElasticHD SQL Converts to ElasticSearch DSL Usage

SQL Features Support:

  • [x] SQL Select
  • [x] SQL Where
  • [x] SQL Order BySQL
  • [x] SQL Group By
  • [x] SQL AND & OR
  • [x] SQL Like & NOT Like
  • [x] SQL COUNT distinct
  • [x] SQL In & Not In
  • [x] SQL Between
  • [x] SQL avg()、count(*), count(field), min(field), max(field)

Beyond SQL Features Support:

  • [x] ES TopHits
  • [x] ES date_histogram
  • [x] ES STATS
  • [x] ES RANGE
  • [x] ES DATE_RANGE

Improvement : now the query DSL is much more flat

SQL Usage

Query

select * from test where a=1 and b="c" and create_time between '2015-01-01T00:00:00+0800' and '2016-01-01T00:00:00+0800' and process_id > 1 order by id desc limit 100,10

Aggregation

select avg(age),min(age),max(age),count(student),count(distinct student) from test group by grade,class limit 10

Beyond SQL * range age group 20-25,25-30,30-35,35-40 SELECT COUNT(age) FROM bank GROUP BY range(age, 20,25,30,35,40) * range date group by your config SELECT online FROM online GROUP BY date_range(field="insert_time",format="yyyy-MM-dd" ,"2014-08-18","2014-08-17","now-8d","now-7d","now-6d","now") * range date group by day

```
select * from test group by date_histogram(field="changeTime",interval="1h",format="yyyy-MM-dd HH:mm:ss")
```
  • stats SELECT online FROM online group by stats(field="grade")
  • topHits select top_hits(field="class", hitssort="age:desc", taglimit = "10", hitslimit = "1", _source="name,age,class,gender") from school

源码编译

# 需要go环境
git clone https://github.com/farmerx/ElasticHD
# 进入到应用目录下
cd ElasticHD
npm install
# build vue 源码
npm run build
# 进入到服务端程序目录
cd ./main
# 使用statik 压缩编译好的程序(github上的一款go应用)
statik -src=../dist
# go build
GO_ENABLED=0 GOOS=windows GOARCH=amd64  go build -o elasticHD.exe github.com/elasticHD/main

Docker Quick Start:

docker run -p 9200:9200 -d --name elasticsearch elasticsearch
docker run -p 9800:9800 -d --link elasticsearch:demo containerize/elastichd

Open http://localhost:9800 in Browser Connect with http://demo:9200


Image link: https://hub.docker.com/r/containerize/elastichd/


Screen Shot: image

编译Docker Images docker build -t elastichd:latest .

ElasticHD应用页面

image image image image image image image image

Todo

  • More plugins support
  • The indices list supports search, better sorting, detailed viewing, and more
  • Program logo design
  • Monitoring information collection

Licenses

This program is under the terms of the MIT License. See LICENSE for the full license text.

Extension points exported contracts — how you extend this code

Sizer (Interface)
Sizer 文件大小
main/search/search.go

Core symbols most depended-on inside this repo

jsonEncode
called by 44
main/search/utils.go
getParams
called by 10
main/search/utils.go
curlGet
called by 5
main/search/utils.go
runCmd
called by 3
main/main.go
handleSignals
called by 1
main/main.go
openPage
called by 1
main/main.go
parseFlags
called by 1
main/main.go
RegHandler
called by 1
main/search/search.go

Shape

Function 26
Method 16
Struct 10
Interface 1
TypeAlias 1

Languages

Go70%
TypeScript30%

Modules by API surface

main/search/search.go21 symbols
main/search/struct.go7 symbols
main/main.go6 symbols
src/store/modules/headerx.js5 symbols
src/store/modules/searchx.js3 symbols
src/store/modules/overviewx.js3 symbols
main/search/utils.go3 symbols
src/store/modules/sidebarx.js2 symbols
src/store/modules/toolsx.js1 symbols
src/store/modules/toolsbarx.js1 symbols
src/store/modules/mappingx.js1 symbols
main/statik/statik.go1 symbols

Dependencies from manifests, versioned

autoprefixer6.7.2 · 1×
babel-core6.22.1 · 1×
babel-eslint7.1.1 · 1×
babel-loader6.2.10 · 1×
babel-plugin-istanbul4.1.1 · 1×
babel-plugin-transform-runtime6.22.0 · 1×
babel-preset-env1.3.2 · 1×
babel-preset-stage-26.22.0 · 1×
babel-register6.22.0 · 1×
bootstrap3.3.7 · 1×
bootstrap-vue0.14.0 · 1×
chai3.5.0 · 1×

For agents

$ claude mcp add ElasticHD \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact