AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.
Rust agent-memoryai-agentsbm25claude-codeclicode-searchcursordatabaseelasticsearchfull-text-searchhybrid-searchjsonllocal-firstmcpmcp-servermodel-context-protocolragrustsearch-enginevector-search
api: implement native ops endpoints; playbooks 61/61 green
xerj-org9c40ed697b84
diff --git a/demo/playbooks/README.md b/demo/playbooks/README.mdindex 73526e186..ff71497f9 100644--- a/demo/playbooks/README.md+++ b/demo/playbooks/README.md@@ -36,13 +36,19 @@ aggregations · vector/kNN · analyzers · mappings/templates/aliases ·log-analytics · ES migration parity · native ops (health/metrics) ·embedded Console UX.-## Known gaps (captured by the suite, not silently skipped)--The ES-compat API (:9200) is comprehensive and green. The **native `/v1`-API (:8080)** currently implements only `/v1/health` and `/v1/metrics`;-the other documented endpoints (`/v1/health/ready`, `/v1/cluster/health`,-`/v1/admin/flush`, `/v1/admin/backup`, `/v1/indices/:name/turbo-ingest`,-etc.) return 404/405 in this build. They show up as ⚠️ in the report so the-docs and the binary can be reconciled. Per-index `_cat/indices/{name}` and-the global `_stats`/`POST /_refresh` also differ from ES (use-`_cat/indices`, `_count`, and per-index `_refresh`).+## Status++**61/61 steps green.** The ES-compat API (:9200) and the native `/v1` ops+API (:8080) are both fully covered — including `/v1/health/ready`,+`/v1/cluster/health`, `/v1/admin/flush`, and `/v1/admin/backup` (a real+on-disk snapshot via `engine::create_snapshot`).++### ES wire-protocol divergences to remember+A few ES paths differ in shape (the suite uses the working forms): per-index+`_cat/indices/{name}` is not supported (use `_cat/indices`); global `_stats`+and global `POST /_refresh` differ (use `_count` and per-index `_refresh`).++### Native ingest content-types+`POST /v1/indices/:name/turbo-ingest` expects a **JSON array** with+`content-type: application/json` (not ndjson); native index creation is+`POST /v1/indices` (not `PUT`).diff --git a/demo/playbooks/SMOKE_REPORT.md b/demo/playbooks/SMOKE_REPORT.mdindex cf8fe66b8..39452fb9e 100644--- a/demo/playbooks/SMOKE_REPORT.md+++ b/demo/playbooks/SMOKE_REPORT.md@@ -2,7 +2,7 @@Generated by `demo/playbooks/run.mjs` against a live xerj (ES-compat :9200 + native :8080).-**57/61 steps passing across 12 use cases.**+**61/61 steps passing across 12 use cases.**| # | use case | doc | steps | pass | cast ||---|---|---|---|---|---|@@ -16,14 +16,10 @@ Generated by `demo/playbooks/run.mjs` against a live xerj (ES-compat :9200 + nat| 08 | Mappings, templates & aliases | config / operations | 4 | ✅ 4/4 | [cast](casts/08-mappings-templates-aliases.md) || 09 | Log analytics — Splunk/Kibana workload | playbooks/log-analytics | 5 | ✅ 5/5 | [cast](casts/09-log-analytics.md) || 10 | Migration from Elasticsearch — drop-in parity | migration-from-es | 4 | ✅ 4/4 | [cast](casts/10-migration-es.md) |-| 11 | Native ops API (:8080) — health & metrics | metrics / operations / api-native | 6 | ⚠️ 2/6 | [cast](casts/11-native-ops.md) |+| 11 | Native ops API (:8080) — health, metrics, flush, backup | metrics / operations / api-native | 6 | ✅ 6/6 | [cast](casts/11-native-ops.md) || 12 | Embedded Console UX | Xerj Console (xerj-ux) | 3 | ✅ 3/3 | [cast](casts/12-console-ux.md) |## Failures / documented-but-unimplemented-- **11-native-ops** · DOC GAP: /v1/health/ready → HTTP 404-- **11-native-ops** · DOC GAP: /v1/cluster/health → HTTP 404-- **11-native-ops** · DOC GAP: /v1/admin/flush → HTTP 404-- **11-native-ops** · DOC GAP: /v1/admin/backup → HTTP 404_Each cast under `casts/` shows the exact `curl` + real response — copy into docs or drive an AISE screencast scene. Structured form in `playbooks.json`._diff --git a/demo/playbooks/casts/01-boot-health.md b/demo/playbooks/casts/01-boot-health.mdindex 2fd3ee55e..3c431fa21 100644--- a/demo/playbooks/casts/01-boot-health.md+++ b/demo/playbooks/casts/01-boot-health.md@@ -12,7 +12,7 @@ curl -s "http://localhost:9200/"```json{- "name": "xerj-node-0bf25a5f",+ "name": "xerj-node-b384c415","cluster_name": "xerj","cluster_uuid": "xerj-cluster-0000-0000-0000-000000000000","version": {@@ -88,7 +88,7 @@ curl -s "http://localhost:8080/v1/health""version": "1.0.0-rc.1"},"took_ms": 0,- "request_id": "13729407-95fb-4967-a3a3-627fc76028cd"+ "request_id": "cfb72836-33db-44b9-acd0-244023ce0e0e"}```diff --git a/demo/playbooks/casts/03-ingest-bulk.md b/demo/playbooks/casts/03-ingest-bulk.mdindex e379c5320..0b31daf88 100644--- a/demo/playbooks/casts/03-ingest-bulk.md+++ b/demo/playbooks/casts/03-ingest-bulk.md@@ -18,10 +18,10 @@ curl -s -XPOST "http://localhost:9200/articles/_bulk" \"items": [{"index": {- "_id": "aab064f6-eecd-4b53-a75c-bf507f99edae",+ "_id": "6e505def-8b8b-4048-a7bb-449a149f8af5","_index": "articles","_primary_term": 1,- "_seq_no": 1782796632748670,+ "_seq_no": 1782797511936383,"_shards": {"failed": 0,"successful": 1,@@ -34,10 +34,10 @@ curl -s -XPOST "http://localhost:9200/articles/_bulk" \},{"index": {- "_id": "118126af-ff27-4207-9dd4-8f92a18e963e",+ "_id": "ac27e975-0932-45cf-92b1-3075721203a8","_index": "articles","_primary_term": 1,- "_seq_no": 1782796632748670,+ "_seq_no": 1782797511936384,"_shards": {"failed": 0,"successful": 1,@@ -50,10 +50,10 @@ curl -s -XPOST "http://localhost:9200/articles/_bulk" \},{"index": {- "_id": "93f7e5c2-629e-4cc2-a884-7c09d50f07f0",+ "_id": "ccbacb35-a75d-4486-a030-177c5cb00ac5","_index": "articles","_primary_term": 1,- "_seq_no": 1782796632748670,+ "_seq_no": 1782797511936384,"_shards": {"failed": 0,"successful": 1,@@ -66,10 +66,10 @@ curl -s -XPOST "http://localhost:9200/articles/_bulk" \},{"index": {- "_id": "b4adabc9-73d7-4c67-a166-2b8c29556617",+ "_id": "f73700d7-04b1-4a58-9ea2-2eff09af1c66","_index": "articles","_primary_term": 1,- "_seq_no": 1782796632748670,+ "_seq_no": 1782797511936384,"_shards": {"failed": 0,"successful": 1,@@ -125,21 +125,21 @@ curl -s "http://localhost:9200/_cat/indices?v"``````json-green open .xerj_cluster_state 13562e00-3e53-4abc-93e1-485daa33ab7d 1 0 0 0-green open .xerj_api_tokens 1b99a488-5e3d-4577-91f1-d550cebadd16 1 0 0 0-green open .xerj_prefs 3b2f09ba-b628-4709-892d-36838e7bcc95 1 0 0 0-green open articles 035aa409-ffd4-4900-bc11-f1ce1362704a 1 0 5 0-green open .xerj_dashboards bf82e004-fe5e-4e3b-981f-ae7f6d9761ea 1 0 0 0-green open .xerj_users f8914758-f9f4-4643-89f0-8cb1b6b60f7e 1 0 0 0-green open .xerj_passkeys c12ab029-b81d-4897-bb2e-c2b044fd55df 1 0 0 0-green open .xerj_alert_rules 0a55c41b-1850-4430-89cb-7b334bd32538 1 0 0 0-green open .xerj_magic_links 24ca4002-e3be-4fe2-908c-bd67d6f7114e 1 0 1 0-green open .xerj_idp_config 0b17a3f0-41d8-437b-b0ff-d8ed0b945830 1 0 0 0-green open .xerj_sessions 37411c10-15bc-45bc-a542-b99ec41dd52a 1 0 0 0-green open .xerj_audit 9f87223e-af48-489a-8c41-259e96006144 1 0 0 0-green open .xerj_connections a9d1fa85-c2c0-431b-87d4-e3019f093076 1 0 0 0-green open .xerj_alert_fires 14e14403-4005-4218-8494-c56c486ae3ae 1 0 0 0-green open .xerj_views bfce567b-a259-4083-a8cb-02d9604e2dd3 1 0 0 0+green open .xerj_users 16684016-624c-4d3b-8f02-2af9c1328fe4 1 0 0 0+green open .xerj_prefs be018abd-cc75-456c-9215-9720f937ae48 1 0 0 0+green open .xerj_connections 65d22489-6e71-4e28-86a9-9c9ca1b17616 1 0 0 0+green open .xerj_magic_links 741ebaf0-6522-4066-bee8-c288bf69933c 1 0 1 0+green open .xerj_sessions cbf776a4-8847-436d-9151-2079ae833164 1 0 0 0+green open .xerj_views eff92923-d7ab-4311-95a8-07e2362ce77c 1 0 0 0+green open articles e1ca6d9c-f280-4189-9361-dceb95bab88d 1 0 5 0+green open .xerj_api_tokens 95708ab2-575c-43d6-9822-3ad8da08ebf2 1 0 0 0+green open .xerj_idp_config 37766ce7-06b9-4b7a-af7f-ff233f514924 1 0 0 0+green open .xerj_alert_fires 85733184-9cb6-4c15-ba32-5ef6a958849e 1 0 0 0+green open .xerj_passkeys 331b2a9f-549b-4405-8bf0-f25a8df65aee 1 0 0 0+green open .xerj_dashboards 12d74f66-2ae4-45f5-83f4-f4adf8af6d3d 1 0 0 0+green open .xerj_alert_rules 3a68a786-d7ca-4927-9306-0230415c5166 1 0 0 0+green open .xerj_audit 5254a3a0-a3b7-4b4a-81b7-b1d3faa9431c 1 0 0 0+green open .xerj_cluster_state b4d7b908-226d-4bdd-9ebc-de6eacaa3e65 1 0 0 0```_HTTP 200_diff --git a/demo/playbooks/casts/04-full-text.md b/demo/playbooks/casts/04-full-text.mdindex ed6d3cc1b..c07f0e46d 100644--- a/demo/playbooks/casts/04-full-text.md+++ b/demo/playbooks/casts/04-full-text.md@@ -25,7 +25,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \{"_id": "1","_index": "articles",- "_score": 0.6099694967269897,+ "_score": 0.28768211603164673,"_source": {"body": "one binary for search","tag": "intro",@@ -34,7 +34,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \}},{- "_id": "118126af-ff27-4207-9dd4-8f92a18e963e",+ "_id": "ac27e975-0932-45cf-92b1-3075721203a8","_index": "articles","_score": 0.28768211603164673,"_source": {@@ -45,7 +45,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \}}],- "max_score": 0.6099694967269897,+ "max_score": 0.28768211603164673,"total": {"relation": "eq","value": 2@@ -77,7 +77,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \"hits": {"hits": [{- "_id": "aab064f6-eecd-4b53-a75c-bf507f99edae",+ "_id": "6e505def-8b8b-4048-a7bb-449a149f8af5","_index": "articles","_score": 1,"_source": {@@ -120,7 +120,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \"hits": {"hits": [{- "_id": "aab064f6-eecd-4b53-a75c-bf507f99edae",+ "_id": "6e505def-8b8b-4048-a7bb-449a149f8af5","_index": "articles","_score": 1.6931471824645996,"_source": {@@ -131,7 +131,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \}},{- "_id": "93f7e5c2-629e-4cc2-a884-7c09d50f07f0",+ "_id": "ccbacb35-a75d-4486-a030-177c5cb00ac5","_index": "articles","_score": 1.6931471824645996,"_source": {@@ -174,7 +174,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \"hits": {"hits": [{- "_id": "aab064f6-eecd-4b53-a75c-bf507f99edae",+ "_id": "6e505def-8b8b-4048-a7bb-449a149f8af5","_index": "articles","_score": 1,"_source": {@@ -185,7 +185,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \}},{- "_id": "118126af-ff27-4207-9dd4-8f92a18e963e",+ "_id": "ac27e975-0932-45cf-92b1-3075721203a8","_index": "articles","_score": 1,"_source": {@@ -196,7 +196,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \}},{- "_id": "93f7e5c2-629e-4cc2-a884-7c09d50f07f0",+ "_id": "ccbacb35-a75d-4486-a030-177c5cb00ac5","_index": "articles","_score": 1,"_source": {@@ -207,7 +207,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \}},{- "_id": "b4adabc9-73d7-4c67-a166-2b8c29556617",+ "_id": "f73700d7-04b1-4a58-9ea2-2eff09af1c66","_index": "articles","_score": 1,"_source": {@@ -261,7 +261,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \}},{- "_id": "118126af-ff27-4207-9dd4-8f92a18e963e",+ "_id": "ac27e975-0932-45cf-92b1-3075721203a8","_index": "articles","_score": 1,"_source": {@@ -272,7 +272,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \}},{- "_id": "93f7e5c2-629e-4cc2-a884-7c09d50f07f0",+ "_id": "ccbacb35-a75d-4486-a030-177c5cb00ac5","_index": "articles","_score": 1,"_source": {@@ -283,7 +283,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \}},{- "_id": "b4adabc9-73d7-4c67-a166-2b8c29556617",+ "_id": "f73700d7-04b1-4a58-9ea2-2eff09af1c66","_index": "articles","_score": 1,"_source": {@@ -326,7 +326,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \"hits": {"hits": [{- "_id": "93f7e5c2-629e-4cc2-a884-7c09d50f07f0",+ "_id": "ccbacb35-a75d-4486-a030-177c5cb00ac5","_index": "articles","_score": 0.9741763472557068,"_source": {@@ -369,7 +369,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \"hits": {"hits": [{- "_id": "aab064f6-eecd-4b53-a75c-bf507f99edae",+ "_id": "6e505def-8b8b-4048-a7bb-449a149f8af5","_index": "articles","_score": 1,"_source": {@@ -423,7 +423,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \}},{- "_id": "118126af-ff27-4207-9dd4-8f92a18e963e",+ "_id": "ac27e975-0932-45cf-92b1-3075721203a8","_index": "articles","_score": 1,"_source": {@@ -477,7 +477,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \}},{- "_id": "aab064f6-eecd-4b53-a75c-bf507f99edae",+ "_id": "6e505def-8b8b-4048-a7bb-449a149f8af5","_index": "articles","_score": 1,"_source": {@@ -488,7 +488,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \}},{- "_id": "118126af-ff27-4207-9dd4-8f92a18e963e",+ "_id": "ac27e975-0932-45cf-92b1-3075721203a8","_index": "articles","_score": 1,"_source": {@@ -499,7 +499,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \}},{- "_id": "93f7e5c2-629e-4cc2-a884-7c09d50f07f0",+ "_id": "ccbacb35-a75d-4486-a030-177c5cb00ac5","_index": "articles","_score": 1,"_source": {@@ -510,7 +510,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \}},{- "_id": "b4adabc9-73d7-4c67-a166-2b8c29556617",+ "_id": "f73700d7-04b1-4a58-9ea2-2eff09af1c66","_index": "articles","_score": 1,"_source": {@@ -546,7 +546,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \"hits": {"hits": [{- "_id": "aab064f6-eecd-4b53-a75c-bf507f99edae",+ "_id": "6e505def-8b8b-4048-a7bb-449a149f8af5","_index": "articles","_score": 0.28768211603164673,"_source": {@@ -565,7 +565,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \}},"timed_out": false,- "took": 1+ "took": 0}```diff --git a/demo/playbooks/casts/06-vector-search.md b/demo/playbooks/casts/06-vector-search.mdindex efe63d5f2..e8a7757f0 100644--- a/demo/playbooks/casts/06-vector-search.md+++ b/demo/playbooks/casts/06-vector-search.md@@ -36,10 +36,10 @@ curl -s -XPOST "http://localhost:9200/vstore/_bulk" \"items": [{"index": {- "_id": "f11a9068-5187-409d-ace8-75612532fe81",+ "_id": "0c76d9b1-ff4f-4124-9388-d448b41654eb","_index": "vstore","_primary_term": 1,- "_seq_no": 1782796632941008,+ "_seq_no": 1782797512123266,"_shards": {"failed": 0,"successful": 1,@@ -52,10 +52,10 @@ curl -s -XPOST "http://localhost:9200/vstore/_bulk" \},{"index": {- "_id": "07c6f744-6e83-4bee-97ed-a258df49532d",+ "_id": "bdb1d421-1b1a-421f-bf3e-a1f6d5acaae8","_index": "vstore","_primary_term": 1,- "_seq_no": 1782796632941008,+ "_seq_no": 1782797512123267,"_shards": {"failed": 0,"successful": 1,@@ -68,10 +68,10 @@ curl -s -XPOST "http://localhost:9200/vstore/_bulk" \},{"index": {- "_id": "34647d96-e2fa-4dcb-952f-182cc70bacd8",+ "_id": "02d1eaaf-581c-4505-bcf2-05c289508bb2","_index": "vstore","_primary_term": 1,- "_seq_no": 1782796632941008,+ "_seq_no": 1782797512123267,"_shards": {"failed": 0,"successful": 1,@@ -126,7 +126,7 @@ curl -s -XPOST "http://localhost:9200/vstore/_search" \"hits": {"hits": [{- "_id": "f11a9068-5187-409d-ace8-75612532fe81",+ "_id": "0c76d9b1-ff4f-4124-9388-d448b41654eb","_index": "vstore","_score": 1,"_source": {@@ -140,7 +140,7 @@ curl -s -XPOST "http://localhost:9200/vstore/_search" \}},{- "_id": "07c6f744-6e83-4bee-97ed-a258df49532d",+ "_id": "bdb1d421-1b1a-421f-bf3e-a1f6d5acaae8","_index": "vstore","_score": 0.608433723449707,"_source": {@@ -154,7 +154,7 @@ curl -s -XPOST "http://localhost:9200/vstore/_search" \}},{- "_id": "34647d96-e2fa-4dcb-952f-182cc70bacd8",+ "_id": "02d1eaaf-581c-4505-bcf2-05c289508bb2","_index": "vstore","_score": 0.5120481848716736,"_source": {diff --git a/demo/playbooks/casts/09-log-analytics.md b/demo/playbooks/casts/09-log-analytics.mdindex 86fe27ab1..cf1507ba7 100644--- a/demo/playbooks/casts/09-log-analytics.md+++ b/demo/playbooks/casts/09-log-analytics.md@@ -18,10 +18,10 @@ curl -s -XPOST "http://localhost:9200/logs-2026-04/_bulk" \"items": [{"index": {- "_id": "b91fb60d-4139-4f60-b77f-f8fd8f7b1b08",+ "_id": "fffdf0fd-e76f-4eda-9fee-bf1defcb0fd1","_index": "logs-2026-04","_primary_term": 1,- "_seq_no": 1782796633012746,+ "_seq_no": 1782797512195670,"_shards": {"failed": 0,"successful": 1,@@ -34,10 +34,10 @@ curl -s -XPOST "http://localhost:9200/logs-2026-04/_bulk" \},{"index": {- "_id": "68a7e704-14b3-49b7-8fff-6360046c5b93",+ "_id": "133a0e30-3416-43d2-8849-3d98da564a53","_index": "logs-2026-04","_primary_term": 1,- "_seq_no": 1782796633012746,+ "_seq_no": 1782797512195671,"_shards": {"failed": 0,"successful": 1,@@ -50,10 +50,10 @@ curl -s -XPOST "http://localhost:9200/logs-2026-04/_bulk" \},{"index": {- "_id": "6bb266ed-93fe-41ce-9d66-136ab8fe87ba",+ "_id": "6950e233-9fbb-43fa-9bbb-c8da2c706128","_index": "logs-2026-04","_primary_term": 1,- "_seq_no": 1782796633012746,+ "_seq_no": 1782797512195671,"_shards": {"failed": 0,"successful": 1,@@ -66,10 +66,10 @@ curl -s -XPOST "http://localhost:9200/logs-2026-04/_bulk" \},{"index": {- "_id": "39294ad5-3bc2-4f8a-94b4-4a318573d130",+ "_id": "07a21f89-3f86-4f4e-95e8-38c1eb1cff33","_index": "logs-2026-04","_primary_term": 1,- "_seq_no": 1782796633012746,+ "_seq_no": 1782797512195671,"_shards": {"failed": 0,"successful": 1,@@ -116,7 +116,7 @@ curl -s -XPOST "http://localhost:9200/logs-2026-04/_search" \"hits": {"hits": [{- "_id": "68a7e704-14b3-49b7-8fff-6360046c5b93",+ "_id": "133a0e30-3416-43d2-8849-3d98da564a53","_index": "logs-2026-04","_score": 1.6931471824645996,"_source": {@@ -127,7 +127,7 @@ curl -s -XPOST "http://localhost:9200/logs-2026-04/_search" \}},{- "_id": "6bb266ed-93fe-41ce-9d66-136ab8fe87ba",+ "_id": "6950e233-9fbb-43fa-9bbb-c8da2c706128","_index": "logs-2026-04","_score": 1.6931471824645996,"_source": {diff --git a/demo/playbooks/casts/10-migration-es.md b/demo/playbooks/casts/10-migration-es.mdindex 7a91d3c1f..dab7250f3 100644--- a/demo/playbooks/casts/10-migration-es.md+++ b/demo/playbooks/casts/10-migration-es.md@@ -12,7 +12,7 @@ curl -s "http://localhost:9200/"```json{- "name": "xerj-node-66d6c077",+ "name": "xerj-node-c69932ac","cluster_name": "xerj","cluster_uuid": "xerj-cluster-0000-0000-0000-000000000000","version": {@@ -39,23 +39,23 @@ curl -s "http://localhost:9200/_cat/indices?v"``````json-green open .xerj_cluster_state 96c36337-d6b1-47f9-9905-e356b6cecb04 1 0 0 0-green open .xerj_api_tokens 1899253e-420a-40a1-af69-6bee59291936 1 0 0 0-green open .xerj_prefs 12f27538-0e09-44e0-aa4b-a0bf44914b23 1 0 0 0-green open logs-2026-04 f00d351d-25ca-465f-99d6-945449e0985e 1 0 4 0-green open articles 1d2028e5-ec5e-4841-bb85-3dc07ba0ee45 1 0 5 0-green open .xerj_dashboards c1be10bb-e64c-4474-bb9b-1314b7a507b4 1 0 0 0-green open .xerj_users c8abbbd2-e317-4e87-9ee4-1cb3f76a8bd5 1 0 0 0-green open .xerj_passkeys ab84e4b4-c7f5-477a-8adc-bcdd2a46822c 1 0 0 0-green open vstore a0fc834d-e792-43ad-ab29-ab698d0d7124 1 0 3 0-green open .xerj_alert_rules 175ed6ba-f804-4b85-b402-b28d4c02ff8d 1 0 0 0-green open .xerj_magic_links 5d8ee201-a207-4952-ae6f-f9d013978b41 1 0 1 0-green open .xerj_idp_config 9c1e2518-68ef-495e-8e9f-70588dac66cc 1 0 0 0-green open .xerj_sessions 239d4dc1-fa8a-49de-8e5c-36d451fc3907 1 0 0 0-green open .xerj_audit 3fd87f94-f6a7-4dda-b7c0-5ee14d7b0c3a 1 0 0 0-green open .xerj_connections 776f68be-7795-4db5-8c7c-029ce4d03fcd 1 0 0 0-green open .xerj_alert_fires e5705c2b-ee99-4d42-b04a-0733bbc0b421 1 0 0 0-green open .xerj_views 3293e930-eb61-4342-88b7-d2ac2347ee69 1 0 0 0+green open .xerj_users 15eeb6ba-d851-4bdc-bf09-8880a062053e 1 0 0 0+green open .xerj_prefs d43de18b-368e-4cc5-ba42-494607ba17ba 1 0 0 0+green open .xerj_connections 0afdeeaf-fa34-41eb-a509-76f53c8e5627 1 0 0 0+green open .xerj_magic_links 381a4093-cf49-4d92-b87e-e75b73a48f18 1 0 1 0+green open .xerj_sessions 8d7776ef-6b9e-45fa-b8ef-3efea8f71622 1 0 0 0+green open .xerj_views 0e6edae4-8f94-4dbd-9fd7-041eed5023b2 1 0 0 0+green open articles d4d4d2de-6262-4996-8b1f-21f8e3044818 1 0 5 0+green open .xerj_api_tokens e55b7c3b-1f86-4943-8fcd-a20aeac4f756 1 0 0 0+green open vstore 7a0e45d3-7433-4d3e-a154-cdbf955fd82b 1 0 3 0+green open logs-2026-04 d74aeacb-c3da-4193-b085-dc6ccf9f3b9d 1 0 4 0+green open .xerj_idp_config a0f89379-2241-4060-9edf-571782d6d64c 1 0 0 0+green open .xerj_alert_fires d10d3f93-84b6-4601-a9c4-52a3ddd7f2f4 1 0 0 0+green open .xerj_passkeys e23768a0-62cd-4ba2-94c9-05a5b05e5129 1 0 0 0+green open .xerj_dashboards de56da56-c4e6-4c70-a489-03ccd18b1d79 1 0 0 0+green open .xerj_alert_rules 09b41441-f5fe-4c5c-a4e7-62da16e6ac4d 1 0 0 0+green open .xerj_audit 426e8c6e-165e-4e1c-a70a-e7c9eafc6b1c 1 0 0 0+green open .xerj_cluster_state 05bc1d6c-b330-4b80-9706-3f390ca66952 1 0 0 0```_HTTP 200_@@ -70,7 +70,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search?scroll=1m" \```json{- "_scroll_id": "56506e1c-84f3-4665-88f1-f7fcf5ddedfa",+ "_scroll_id": "3957ab5f-09e3-4bef-8e45-2986249a0089","_shards": {"failed": 0,"skipped": 0,@@ -91,7 +91,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search?scroll=1m" \}},{- "_id": "aab064f6-eecd-4b53-a75c-bf507f99edae",+ "_id": "6e505def-8b8b-4048-a7bb-449a149f8af5","_index": "articles","_score": 1,"_source": {diff --git a/demo/playbooks/casts/11-native-ops.md b/demo/playbooks/casts/11-native-ops.mdindex d88e2fd58..9c2b66cce 100644--- a/demo/playbooks/casts/11-native-ops.md+++ b/demo/playbooks/casts/11-native-ops.md@@ -1,8 +1,8 @@-# Native ops API (:8080) — health & metrics+# Native ops API (:8080) — health, metrics, flush, backup_Use case doc: metrics / operations / api-native_-The native v1 surface for ops. NOTE: this binary implements health + metrics; the rest of the documented /v1 API is not yet live (captured as gaps).+The native v1 ops surface: health + readiness probes, prometheus metrics, cluster health, a cluster-wide flush, and an on-disk backup (snapshot).### ✅ native health@@ -19,12 +19,24 @@ curl -s "http://localhost:8080/v1/health""version": "1.0.0-rc.1"},"took_ms": 0,- "request_id": "d64f1a4e-098c-4b04-8e97-586c978341c2"+ "request_id": "5cdfecab-cb65-4485-abeb-ccf5ac92b38d"}```_HTTP 200_+### ✅ readiness probe++```bash+curl -s "http://localhost:8080/v1/health/ready"+```++```json+ready+```++_HTTP 200_+### ✅ prometheus scrape```bash@@ -61,48 +73,74 @@ xerj_flush_duration_seconds_bucket{le="0.32"} 0xerj_flush_duration_seconds_bucket{le="0.64"} 0xerj_flush_duration_seconds_bucket{le="1.28"} 0xerj_flush_duration_seconds_bucket{le="2-… (5150 more bytes)+… (5146 more bytes)```_HTTP 200_-### ❌ DOC GAP: /v1/health/ready--```bash-curl -s "http://localhost:8080/v1/health/ready"-```--```json--```--_HTTP 404_--### ❌ DOC GAP: /v1/cluster/health+### ✅ cluster health```bashcurl -s "http://localhost:8080/v1/cluster/health"``````json-+{+ "data": {+ "cluster_name": "xerj",+ "index_count": 17,+ "number_of_data_nodes": 1,+ "number_of_nodes": 1,+ "status": "yellow",+ "total_docs": 11,+ "version": "1.0.0-rc.1"+ },+ "took_ms": 0,+ "request_id": "401a3bfa-5151-4585-ba88-b6eea7fb8b70"+}```-_HTTP 404_+_HTTP 200_-### ❌ DOC GAP: /v1/admin/flush+### ✅ cluster-wide flush```bashcurl -s -XPOST "http://localhost:8080/v1/admin/flush"``````json-+{+ "data": {+ "failed": [],+ "flushed": 17,+ "indices": [+ ".xerj_users",+ ".xerj_prefs",+ ".xerj_connections",+ ".xerj_magic_links",+ ".xerj_sessions",+ ".xerj_views",+ "articles",+ ".xerj_api_tokens",+ "vstore",+ "logs-2026-04",+ ".xerj_idp_config",+ ".xerj_alert_fires",+ ".xerj_passkeys",+ ".xerj_dashboards",+ ".xerj_alert_rules",+ ".xerj_audit",+ ".xerj_cluster_state"+ ]+ },+ "took_ms": 6,+ "request_id": "2bbde9cd-e4a8-4905-a778-06d71a2ec32b"+}```-_HTTP 404_+_HTTP 200_-### ❌ DOC GAP: /v1/admin/backup+### ✅ backup (snapshot to disk)```bashcurl -s -XPOST "http://localhost:8080/v1/admin/backup" \@@ -111,8 +149,50 @@ curl -s -XPOST "http://localhost:8080/v1/admin/backup" \``````json-+{+ "data": {+ "backup": "backup-4c0811fe-c67e-4343-988d-7f89817ab3d9",+ "manifest": {+ "duration_in_millis": 0,+ "end_time_in_millis": 1782797512303,+ "failures": [],+ "index_files": [+ {+ "files": [+ "0000000000000000.wchk",+ "0000000000000000.wal",+ "0000000000000000.wchk",+ "0000000000000000.wal",+ "0000000000000000.wchk",+ "0000000000000000.wal",+ "0000000000000000.wchk",+ "0000000000000000.wal",+ "0000000000000000.wchk",+ "0000000000000000.wal",+ "0000000000000000.wchk",+ "0000000000000000.wal",+ "0000000000000000.wchk",+ "0000000000000000.wal",+ "0000000000000000.wchk",+ "0000000000000000.wal",+ "0000000000000000.wchk",+ "0000000000000000.wal",+ "0000000000000000.wchk",+ "0000000000000000.wal",+ "0000000000000000.wchk",+ "0000000000000000.wal",+ "0000000000000000.wchk",+ "0000000000000000.wal",+ "0000000000000000.wchk",+ "0000000000000000.wal",+ "0000000000000000.wchk",+ "0000000000000000.wal",+ "0000000000000000.wchk",+ "0000000000000000.wal",+ "0000000000000000.wchk",+ "000000000000+… (37169 more bytes)```-_HTTP 404_+_HTTP 201_diff --git a/demo/playbooks/playbooks.json b/demo/playbooks/playbooks.jsonindex 54d52e42c..f2afd73b6 100644--- a/demo/playbooks/playbooks.json+++ b/demo/playbooks/playbooks.json@@ -9,7 +9,7 @@"cmd": "curl -s \"http://localhost:9200/\"","status": 200,"pass": true,- "output": "{\n \"name\": \"xerj-node-0bf25a5f\",\n \"cluster_name\": \"xerj\",\n \"cluster_uuid\": \"xerj-cluster-0000-0000-0000-000000000000\",\n \"version\": {\n \"number\": \"8.13.0\",\n \"build_flavor\": \"default\",\n \"build_type\": \"tar\",\n \"build_hash\": \"00000000\",\n \"build_date\": \"2024-03-22T00:00:00.000Z\",\n \"build_snapshot\": false,\n \"lucene_version\": \"9.10.0\",\n \"minimum_wire_compatibility_version\": \"7.17.0\",\n \"minimum_index_compatibility_version\": \"7.0.0\"\n },\n \"tagline\": \"You Know, for Search\"\n}"+ "output": "{\n \"name\": \"xerj-node-b384c415\",\n \"cluster_name\": \"xerj\",\n \"cluster_uuid\": \"xerj-cluster-0000-0000-0000-000000000000\",\n \"version\": {\n \"number\": \"8.13.0\",\n \"build_flavor\": \"default\",\n \"build_type\": \"tar\",\n \"build_hash\": \"00000000\",\n \"build_date\": \"2024-03-22T00:00:00.000Z\",\n \"build_snapshot\": false,\n \"lucene_version\": \"9.10.0\",\n \"minimum_wire_compatibility_version\": \"7.17.0\",\n \"minimum_index_compatibility_version\": \"7.0.0\"\n },\n \"tagline\": \"You Know, for Search\"\n}"},{"label": "cluster health is green",@@ -30,7 +30,7 @@"cmd": "curl -s \"http://localhost:8080/v1/health\"","status": 200,"pass": true,- "output": "{\n \"data\": {\n \"status\": \"yellow\",\n \"index_count\": 14,\n \"total_docs\": 1,\n \"version\": \"1.0.0-rc.1\"\n },\n \"took_ms\": 0,\n \"request_id\": \"13729407-95fb-4967-a3a3-627fc76028cd\"\n}"+ "output": "{\n \"data\": {\n \"status\": \"yellow\",\n \"index_count\": 14,\n \"total_docs\": 1,\n \"version\": \"1.0.0-rc.1\"\n },\n \"took_ms\": 0,\n \"request_id\": \"cfb72836-33db-44b9-acd0-244023ce0e0e\"\n}"},{"label": "prometheus metrics (:8080)",@@ -86,7 +86,7 @@"cmd": "curl -s -XPOST \"http://localhost:9200/articles/_bulk\" \\\n -H 'content-type: application/x-ndjson' \\\n --data-binary $'{\"index\":{}}\\n{\"title\":\"A\",\"body\":\"alpha vector\",\"views\":10,\"tag\":\"a\"}\\n{\"index\":{}}\\n{\"title\":\"B\",\"body\":\"beta search\",\"views\":20,\"tag\":\"b\"}\\n{\"index\":{}}\\n{\"title\":\"C\",\"body\":\"gamma logs\",\"views\":30,\"tag\":\"a\"}\\n{\"index\":{}}\\n{\"title\":\"D\",\"body\":\"delta agg\",\"views\":40,\"tag\":\"b\"}\\n'","status": 200,"pass": true,- "output": "{\n \"errors\": false,\n \"items\": [\n {\n \"index\": {\n \"_id\": \"aab064f6-eecd-4b53-a75c-bf507f99edae\",\n \"_index\": \"articles\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782796632748670,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_id\": \"118126af-ff27-4207-9dd4-8f92a18e963e\",\n \"_index\": \"articles\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782796632748670,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_id\": \"93f7e5c2-629e-4cc2-a884-7c09d50f07f0\",\n \"_index\": \"articles\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782796632748670,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_id\": \"b4adabc9-73d7-4c67-a166-2b8c29556617\",\n \"_index\": \"articles\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782796632748670,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n }\n ],\n \"took\": 2\n}"+ "output": "{\n \"errors\": false,\n \"items\": [\n {\n \"index\": {\n \"_id\": \"6e505def-8b8b-4048-a7bb-449a149f8af5\",\n \"_index\": \"articles\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782797511936383,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_id\": \"ac27e975-0932-45cf-92b1-3075721203a8\",\n \"_index\": \"articles\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782797511936384,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_id\": \"ccbacb35-a75d-4486-a030-177c5cb00ac5\",\n \"_index\": \"articles\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782797511936384,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_id\": \"f73700d7-04b1-4a58-9ea2-2eff09af1c66\",\n \"_index\": \"articles\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782797511936384,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n }\n ],\n \"took\": 1\n}"},{"label": "refresh to make searchable",@@ -107,7 +107,7 @@"cmd": "curl -s \"http://localhost:9200/_cat/indices?v\"","status": 200,"pass": true,- "output": "green open .xerj_cluster_state 13562e00-3e53-4abc-93e1-485daa33ab7d 1 0 0 0\ngreen open .xerj_api_tokens 1b99a488-5e3d-4577-91f1-d550cebadd16 1 0 0 0\ngreen open .xerj_prefs 3b2f09ba-b628-4709-892d-36838e7bcc95 1 0 0 0\ngreen open articles 035aa409-ffd4-4900-bc11-f1ce1362704a 1 0 5 0\ngreen open .xerj_dashboards bf82e004-fe5e-4e3b-981f-ae7f6d9761ea 1 0 0 0\ngreen open .xerj_users f8914758-f9f4-4643-89f0-8cb1b6b60f7e 1 0 0 0\ngreen open .xerj_passkeys c12ab029-b81d-4897-bb2e-c2b044fd55df 1 0 0 0\ngreen open .xerj_alert_rules 0a55c41b-1850-4430-89cb-7b334bd32538 1 0 0 0\ngreen open .xerj_magic_links 24ca4002-e3be-4fe2-908c-bd67d6f7114e 1 0 1 0\ngreen open .xerj_idp_config 0b17a3f0-41d8-437b-b0ff-d8ed0b945830 1 0 0 0\ngreen open .xerj_sessions 37411c10-15bc-45bc-a542-b99ec41dd52a 1 0 0 0\ngreen open .xerj_audit 9f87223e-af48-489a-8c41-259e96006144 1 0 0 0\ngreen open .xerj_connections a9d1fa85-c2c0-431b-87d4-e3019f093076 1 0 0 0\ngreen open .xerj_alert_fires 14e14403-4005-4218-8494-c56c486ae3ae 1 0 0 0\ngreen open .xerj_views bfce567b-a259-4083-a8cb-02d9604e2dd3 1 0 0 0"+ "output": "green open .xerj_users 16684016-624c-4d3b-8f02-2af9c1328fe4 1 0 0 0\ngreen open .xerj_prefs be018abd-cc75-456c-9215-9720f937ae48 1 0 0 0\ngreen open .xerj_connections 65d22489-6e71-4e28-86a9-9c9ca1b17616 1 0 0 0\ngreen open .xerj_magic_links 741ebaf0-6522-4066-bee8-c288bf69933c 1 0 1 0\ngreen open .xerj_sessions cbf776a4-8847-436d-9151-2079ae833164 1 0 0 0\ngreen open .xerj_views eff92923-d7ab-4311-95a8-07e2362ce77c 1 0 0 0\ngreen open articles e1ca6d9c-f280-4189-9361-dceb95bab88d 1 0 5 0\ngreen open .xerj_api_tokens 95708ab2-575c-43d6-9822-3ad8da08ebf2 1 0 0 0\ngreen open .xerj_idp_config 37766ce7-06b9-4b7a-af7f-ff233f514924 1 0 0 0\ngreen open .xerj_alert_fires 85733184-9cb6-4c15-ba32-5ef6a958849e 1 0 0 0\ngreen open .xerj_passkeys 331b2a9f-549b-4405-8bf0-f25a8df65aee 1 0 0 0\ngreen open .xerj_dashboards 12d74f66-2ae4-45f5-83f4-f4adf8af6d3d 1 0 0 0\ngreen open .xerj_alert_rules 3a68a786-d7ca-4927-9306-0230415c5166 1 0 0 0\ngreen open .xerj_audit 5254a3a0-a3b7-4b4a-81b7-b1d3faa9431c 1 0 0 0\ngreen open .xerj_cluster_state b4d7b908-226d-4bdd-9ebc-de6eacaa3e65 1 0 0 0"}]},@@ -121,70 +121,70 @@"cmd": "curl -s -XPOST \"http://localhost:9200/articles/_search\" \\\n -H 'content-type: application/json' \\\n -d '{\"query\":{\"match\":{\"body\":\"search\"}}}'","status": 200,"pass": true,- "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"1\",\n \"_index\": \"articles\",\n \"_score\": 0.6099694967269897,\n \"_source\": {\n \"body\": \"one binary for search\",\n \"tag\": \"intro\",\n \"title\": \"Hello Xerj\",\n \"views\": 42\n }\n },\n {\n \"_id\": \"118126af-ff27-4207-9dd4-8f92a18e963e\",\n \"_index\": \"articles\",\n \"_score\": 0.28768211603164673,\n \"_source\": {\n \"body\": \"beta search\",\n \"tag\": \"b\",\n \"title\": \"B\",\n \"views\": 20\n }\n }\n ],\n \"max_score\": 0.6099694967269897,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 2\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"1\",\n \"_index\": \"articles\",\n \"_score\": 0.28768211603164673,\n \"_source\": {\n \"body\": \"one binary for search\",\n \"tag\": \"intro\",\n \"title\": \"Hello Xerj\",\n \"views\": 42\n }\n },\n {\n \"_id\": \"ac27e975-0932-45cf-92b1-3075721203a8\",\n \"_index\": \"articles\",\n \"_score\": 0.28768211603164673,\n \"_source\": {\n \"body\": \"beta search\",\n \"tag\": \"b\",\n \"title\": \"B\",\n \"views\": 20\n }\n }\n ],\n \"max_score\": 0.28768211603164673,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 2\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"},{"label": "match_phrase","cmd": "curl -s -XPOST \"http://localhost:9200/articles/_search\" \\\n -H 'content-type: application/json' \\\n -d '{\"query\":{\"match_phrase\":{\"body\":\"alpha vector\"}}}'","status": 200,"pass": true,- "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"aab064f6-eecd-4b53-a75c-bf507f99edae\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"alpha vector\",\n \"tag\": \"a\",\n \"title\": \"A\",\n \"views\": 10\n }\n }\n ],\n \"max_score\": 1,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 1\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"6e505def-8b8b-4048-a7bb-449a149f8af5\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"alpha vector\",\n \"tag\": \"a\",\n \"title\": \"A\",\n \"views\": 10\n }\n }\n ],\n \"max_score\": 1,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 1\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"},{"label": "term (keyword)","cmd": "curl -s -XPOST \"http://localhost:9200/articles/_search\" \\\n -H 'content-type: application/json' \\\n -d '{\"query\":{\"term\":{\"tag\":\"a\"}}}'","status": 200,"pass": true,- "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"aab064f6-eecd-4b53-a75c-bf507f99edae\",\n \"_index\": \"articles\",\n \"_score\": 1.6931471824645996,\n \"_source\": {\n \"body\": \"alpha vector\",\n \"tag\": \"a\",\n \"title\": \"A\",\n \"views\": 10\n }\n },\n {\n \"_id\": \"93f7e5c2-629e-4cc2-a884-7c09d50f07f0\",\n \"_index\": \"articles\",\n \"_score\": 1.6931471824645996,\n \"_source\": {\n \"body\": \"gamma logs\",\n \"tag\": \"a\",\n \"title\": \"C\",\n \"views\": 30\n }\n }\n ],\n \"max_score\": 1.6931471824645996,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 2\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"6e505def-8b8b-4048-a7bb-449a149f8af5\",\n \"_index\": \"articles\",\n \"_score\": 1.6931471824645996,\n \"_source\": {\n \"body\": \"alpha vector\",\n \"tag\": \"a\",\n \"title\": \"A\",\n \"views\": 10\n }\n },\n {\n \"_id\": \"ccbacb35-a75d-4486-a030-177c5cb00ac5\",\n \"_index\": \"articles\",\n \"_score\": 1.6931471824645996,\n \"_source\": {\n \"body\": \"gamma logs\",\n \"tag\": \"a\",\n \"title\": \"C\",\n \"views\": 30\n }\n }\n ],\n \"max_score\": 1.6931471824645996,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 2\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"},{"label": "terms","cmd": "curl -s -XPOST \"http://localhost:9200/articles/_search\" \\\n -H 'content-type: application/json' \\\n -d '{\"query\":{\"terms\":{\"tag\":[\"a\",\"b\"]}}}'","status": 200,"pass": true,- "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"aab064f6-eecd-4b53-a75c-bf507f99edae\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"alpha vector\",\n \"tag\": \"a\",\n \"title\": \"A\",\n \"views\": 10\n }\n },\n {\n \"_id\": \"118126af-ff27-4207-9dd4-8f92a18e963e\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"beta search\",\n \"tag\": \"b\",\n \"title\": \"B\",\n \"views\": 20\n }\n },\n {\n \"_id\": \"93f7e5c2-629e-4cc2-a884-7c09d50f07f0\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"gamma logs\",\n \"tag\": \"a\",\n \"title\": \"C\",\n \"views\": 30\n }\n },\n {\n \"_id\": \"b4adabc9-73d7-4c67-a166-2b8c29556617\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"delta agg\",\n \"tag\": \"b\",\n \"title\": \"D\",\n \"views\": 40\n }\n }\n ],\n \"max_score\": 1,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 4\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"6e505def-8b8b-4048-a7bb-449a149f8af5\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"alpha vector\",\n \"tag\": \"a\",\n \"title\": \"A\",\n \"views\": 10\n }\n },\n {\n \"_id\": \"ac27e975-0932-45cf-92b1-3075721203a8\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"beta search\",\n \"tag\": \"b\",\n \"title\": \"B\",\n \"views\": 20\n }\n },\n {\n \"_id\": \"ccbacb35-a75d-4486-a030-177c5cb00ac5\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"gamma logs\",\n \"tag\": \"a\",\n \"title\": \"C\",\n \"views\": 30\n }\n },\n {\n \"_id\": \"f73700d7-04b1-4a58-9ea2-2eff09af1c66\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"delta agg\",\n \"tag\": \"b\",\n \"title\": \"D\",\n \"views\": 40\n }\n }\n ],\n \"max_score\": 1,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 4\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"},{"label": "range","cmd": "curl -s -XPOST \"http://localhost:9200/articles/_search\" \\\n -H 'content-type: application/json' \\\n -d '{\"query\":{\"range\":{\"views\":{\"gte\":20}}}}'","status": 200,"pass": true,- "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"1\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"one binary for search\",\n \"tag\": \"intro\",\n \"title\": \"Hello Xerj\",\n \"views\": 42\n }\n },\n {\n \"_id\": \"118126af-ff27-4207-9dd4-8f92a18e963e\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"beta search\",\n \"tag\": \"b\",\n \"title\": \"B\",\n \"views\": 20\n }\n },\n {\n \"_id\": \"93f7e5c2-629e-4cc2-a884-7c09d50f07f0\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"gamma logs\",\n \"tag\": \"a\",\n \"title\": \"C\",\n \"views\": 30\n }\n },\n {\n \"_id\": \"b4adabc9-73d7-4c67-a166-2b8c29556617\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"delta agg\",\n \"tag\": \"b\",\n \"title\": \"D\",\n \"views\": 40\n }\n }\n ],\n \"max_score\": 1,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 4\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"1\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"one binary for search\",\n \"tag\": \"intro\",\n \"title\": \"Hello Xerj\",\n \"views\": 42\n }\n },\n {\n \"_id\": \"ac27e975-0932-45cf-92b1-3075721203a8\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"beta search\",\n \"tag\": \"b\",\n \"title\": \"B\",\n \"views\": 20\n }\n },\n {\n \"_id\": \"ccbacb35-a75d-4486-a030-177c5cb00ac5\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"gamma logs\",\n \"tag\": \"a\",\n \"title\": \"C\",\n \"views\": 30\n }\n },\n {\n \"_id\": \"f73700d7-04b1-4a58-9ea2-2eff09af1c66\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"delta agg\",\n \"tag\": \"b\",\n \"title\": \"D\",\n \"views\": 40\n }\n }\n ],\n \"max_score\": 1,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 4\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"},{"label": "bool must+filter","cmd": "curl -s -XPOST \"http://localhost:9200/articles/_search\" \\\n -H 'content-type: application/json' \\\n -d '{\"query\":{\"bool\":{\"must\":[{\"match\":{\"body\":\"logs\"}}],\"filter\":[{\"term\":{\"tag\":\"a\"}}]}}}'","status": 200,"pass": true,- "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"93f7e5c2-629e-4cc2-a884-7c09d50f07f0\",\n \"_index\": \"articles\",\n \"_score\": 0.9741763472557068,\n \"_source\": {\n \"body\": \"gamma logs\",\n \"tag\": \"a\",\n \"title\": \"C\",\n \"views\": 30\n }\n }\n ],\n \"max_score\": 0.9741763472557068,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 1\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"ccbacb35-a75d-4486-a030-177c5cb00ac5\",\n \"_index\": \"articles\",\n \"_score\": 0.9741763472557068,\n \"_source\": {\n \"body\": \"gamma logs\",\n \"tag\": \"a\",\n \"title\": \"C\",\n \"views\": 30\n }\n }\n ],\n \"max_score\": 0.9741763472557068,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 1\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"},{"label": "prefix","cmd": "curl -s -XPOST \"http://localhost:9200/articles/_search\" \\\n -H 'content-type: application/json' \\\n -d '{\"query\":{\"prefix\":{\"body\":\"alp\"}}}'","status": 200,"pass": true,- "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"aab064f6-eecd-4b53-a75c-bf507f99edae\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"alpha vector\",\n \"tag\": \"a\",\n \"title\": \"A\",\n \"views\": 10\n }\n }\n ],\n \"max_score\": 1,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 1\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"6e505def-8b8b-4048-a7bb-449a149f8af5\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"alpha vector\",\n \"tag\": \"a\",\n \"title\": \"A\",\n \"views\": 10\n }\n }\n ],\n \"max_score\": 1,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 1\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"},{"label": "wildcard","cmd": "curl -s -XPOST \"http://localhost:9200/articles/_search\" \\\n -H 'content-type: application/json' \\\n -d '{\"query\":{\"wildcard\":{\"body\":\"sea*\"}}}'","status": 200,"pass": true,- "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"1\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"one binary for search\",\n \"tag\": \"intro\",\n \"title\": \"Hello Xerj\",\n \"views\": 42\n }\n },\n {\n \"_id\": \"118126af-ff27-4207-9dd4-8f92a18e963e\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"beta search\",\n \"tag\": \"b\",\n \"title\": \"B\",\n \"views\": 20\n }\n }\n ],\n \"max_score\": 1,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 2\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"1\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"one binary for search\",\n \"tag\": \"intro\",\n \"title\": \"Hello Xerj\",\n \"views\": 42\n }\n },\n {\n \"_id\": \"ac27e975-0932-45cf-92b1-3075721203a8\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"beta search\",\n \"tag\": \"b\",\n \"title\": \"B\",\n \"views\": 20\n }\n }\n ],\n \"max_score\": 1,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 2\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"},{"label": "exists","cmd": "curl -s -XPOST \"http://localhost:9200/articles/_search\" \\\n -H 'content-type: application/json' \\\n -d '{\"query\":{\"exists\":{\"field\":\"title\"}}}'","status": 200,"pass": true,- "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"1\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"one binary for search\",\n \"tag\": \"intro\",\n \"title\": \"Hello Xerj\",\n \"views\": 42\n }\n },\n {\n \"_id\": \"aab064f6-eecd-4b53-a75c-bf507f99edae\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"alpha vector\",\n \"tag\": \"a\",\n \"title\": \"A\",\n \"views\": 10\n }\n },\n {\n \"_id\": \"118126af-ff27-4207-9dd4-8f92a18e963e\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"beta search\",\n \"tag\": \"b\",\n \"title\": \"B\",\n \"views\": 20\n }\n },\n {\n \"_id\": \"93f7e5c2-629e-4cc2-a884-7c09d50f07f0\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"gamma logs\",\n \"tag\": \"a\",\n \"title\": \"C\",\n \"views\": 30\n }\n },\n {\n \"_id\": \"b4adabc9-73d7-4c67-a166-2b8c29556617\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"delta agg\",\n \"tag\": \"b\",\n \"title\": \"D\",\n \"views\": 40\n }\n }\n ],\n \"max_score\": 1,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 5\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"1\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"one binary for search\",\n \"tag\": \"intro\",\n \"title\": \"Hello Xerj\",\n \"views\": 42\n }\n },\n {\n \"_id\": \"6e505def-8b8b-4048-a7bb-449a149f8af5\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"alpha vector\",\n \"tag\": \"a\",\n \"title\": \"A\",\n \"views\": 10\n }\n },\n {\n \"_id\": \"ac27e975-0932-45cf-92b1-3075721203a8\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"beta search\",\n \"tag\": \"b\",\n \"title\": \"B\",\n \"views\": 20\n }\n },\n {\n \"_id\": \"ccbacb35-a75d-4486-a030-177c5cb00ac5\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"gamma logs\",\n \"tag\": \"a\",\n \"title\": \"C\",\n \"views\": 30\n }\n },\n {\n \"_id\": \"f73700d7-04b1-4a58-9ea2-2eff09af1c66\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"delta agg\",\n \"tag\": \"b\",\n \"title\": \"D\",\n \"views\": 40\n }\n }\n ],\n \"max_score\": 1,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 5\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"},{"label": "highlight + sort + _source","cmd": "curl -s -XPOST \"http://localhost:9200/articles/_search\" \\\n -H 'content-type: application/json' \\\n -d '{\"query\":{\"match\":{\"body\":\"vector\"}},\"highlight\":{\"fields\":{\"body\":{}}},\"sort\":[{\"views\":\"desc\"}],\"_source\":[\"title\",\"views\"]}'","status": 200,"pass": true,- "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"aab064f6-eecd-4b53-a75c-bf507f99edae\",\n \"_index\": \"articles\",\n \"_score\": 0.28768211603164673,\n \"_source\": {\n \"title\": \"A\",\n \"views\": 10\n },\n \"sort\": [\n 10\n ]\n }\n ],\n \"max_score\": null,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 1\n }\n },\n \"timed_out\": false,\n \"took\": 1\n}"+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"6e505def-8b8b-4048-a7bb-449a149f8af5\",\n \"_index\": \"articles\",\n \"_score\": 0.28768211603164673,\n \"_source\": {\n \"title\": \"A\",\n \"views\": 10\n },\n \"sort\": [\n 10\n ]\n }\n ],\n \"max_score\": null,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 1\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"}]},@@ -275,7 +275,7 @@"cmd": "curl -s -XPOST \"http://localhost:9200/vstore/_bulk\" \\\n -H 'content-type: application/x-ndjson' \\\n --data-binary $'{\"index\":{}}\\n{\"text\":\"red apple\",\"embedding\":[0.9,0.1,0.0,0.1]}\\n{\"index\":{}}\\n{\"text\":\"green pear\",\"embedding\":[0.1,0.9,0.1,0.0]}\\n{\"index\":{}}\\n{\"text\":\"blue car\",\"embedding\":[0.0,0.1,0.9,0.1]}\\n'","status": 200,"pass": true,- "output": "{\n \"errors\": false,\n \"items\": [\n {\n \"index\": {\n \"_id\": \"f11a9068-5187-409d-ace8-75612532fe81\",\n \"_index\": \"vstore\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782796632941008,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_id\": \"07c6f744-6e83-4bee-97ed-a258df49532d\",\n \"_index\": \"vstore\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782796632941008,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_id\": \"34647d96-e2fa-4dcb-952f-182cc70bacd8\",\n \"_index\": \"vstore\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782796632941008,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n }\n ],\n \"took\": 0\n}"+ "output": "{\n \"errors\": false,\n \"items\": [\n {\n \"index\": {\n \"_id\": \"0c76d9b1-ff4f-4124-9388-d448b41654eb\",\n \"_index\": \"vstore\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782797512123266,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_id\": \"bdb1d421-1b1a-421f-bf3e-a1f6d5acaae8\",\n \"_index\": \"vstore\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782797512123267,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_id\": \"02d1eaaf-581c-4505-bcf2-05c289508bb2\",\n \"_index\": \"vstore\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782797512123267,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n }\n ],\n \"took\": 0\n}"},{"label": "refresh",@@ -289,7 +289,7 @@"cmd": "curl -s -XPOST \"http://localhost:9200/vstore/_search\" \\\n -H 'content-type: application/json' \\\n -d '{\"knn\":{\"field\":\"embedding\",\"query_vector\":[0.9,0.1,0,0.1],\"k\":2,\"num_candidates\":10}}'","status": 200,"pass": true,- "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"f11a9068-5187-409d-ace8-75612532fe81\",\n \"_index\": \"vstore\",\n \"_score\": 1,\n \"_source\": {\n \"embedding\": [\n 0.9,\n 0.1,\n 0,\n 0.1\n ],\n \"text\": \"red apple\"\n }\n },\n {\n \"_id\": \"07c6f744-6e83-4bee-97ed-a258df49532d\",\n \"_index\": \"vstore\",\n \"_score\": 0.608433723449707,\n \"_source\": {\n \"embedding\": [\n 0.1,\n 0.9,\n 0.1,\n 0\n ],\n \"text\": \"green pear\"\n }\n },\n {\n \"_id\": \"34647d96-e2fa-4dcb-952f-182cc70bacd8\",\n \"_index\": \"vstore\",\n \"_score\": 0.5120481848716736,\n \"_source\": {\n \"embedding\": [\n 0,\n 0.1,\n 0.9,\n 0.1\n ],\n \"text\": \"blue car\"\n }\n }\n ],\n \"max_score\": 1,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 3\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"0c76d9b1-ff4f-4124-9388-d448b41654eb\",\n \"_index\": \"vstore\",\n \"_score\": 1,\n \"_source\": {\n \"embedding\": [\n 0.9,\n 0.1,\n 0,\n 0.1\n ],\n \"text\": \"red apple\"\n }\n },\n {\n \"_id\": \"bdb1d421-1b1a-421f-bf3e-a1f6d5acaae8\",\n \"_index\": \"vstore\",\n \"_score\": 0.608433723449707,\n \"_source\": {\n \"embedding\": [\n 0.1,\n 0.9,\n 0.1,\n 0\n ],\n \"text\": \"green pear\"\n }\n },\n {\n \"_id\": \"02d1eaaf-581c-4505-bcf2-05c289508bb2\",\n \"_index\": \"vstore\",\n \"_score\": 0.5120481848716736,\n \"_source\": {\n \"embedding\": [\n 0,\n 0.1,\n 0.9,\n 0.1\n ],\n \"text\": \"blue car\"\n }\n }\n ],\n \"max_score\": 1,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 3\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"}]},@@ -366,7 +366,7 @@"cmd": "curl -s -XPOST \"http://localhost:9200/logs-2026-04/_bulk\" \\\n -H 'content-type: application/x-ndjson' \\\n --data-binary $'{\"index\":{}}\\n{\"@timestamp\":\"2026-04-26T19:47:24Z\",\"level\":\"info\",\"msg\":\"request ok\",\"svc\":\"api\"}\\n{\"index\":{}}\\n{\"@timestamp\":\"2026-04-26T19:47:24Z\",\"level\":\"error\",\"msg\":\"timeout\",\"svc\":\"api\"}\\n{\"index\":{}}\\n{\"@timestamp\":\"2026-04-26T19:47:24Z\",\"level\":\"error\",\"msg\":\"5xx upstream\",\"svc\":\"web\"}\\n{\"index\":{}}\\n{\"@timestamp\":\"2026-04-26T19:47:24Z\",\"level\":\"warn\",\"msg\":\"slow query\",\"svc\":\"db\"}\\n'","status": 200,"pass": true,- "output": "{\n \"errors\": false,\n \"items\": [\n {\n \"index\": {\n \"_id\": \"b91fb60d-4139-4f60-b77f-f8fd8f7b1b08\",\n \"_index\": \"logs-2026-04\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782796633012746,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_id\": \"68a7e704-14b3-49b7-8fff-6360046c5b93\",\n \"_index\": \"logs-2026-04\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782796633012746,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_id\": \"6bb266ed-93fe-41ce-9d66-136ab8fe87ba\",\n \"_index\": \"logs-2026-04\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782796633012746,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_id\": \"39294ad5-3bc2-4f8a-94b4-4a318573d130\",\n \"_index\": \"logs-2026-04\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782796633012746,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n }\n ],\n \"took\": 1\n}"+ "output": "{\n \"errors\": false,\n \"items\": [\n {\n \"index\": {\n \"_id\": \"fffdf0fd-e76f-4eda-9fee-bf1defcb0fd1\",\n \"_index\": \"logs-2026-04\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782797512195670,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_id\": \"133a0e30-3416-43d2-8849-3d98da564a53\",\n \"_index\": \"logs-2026-04\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782797512195671,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_id\": \"6950e233-9fbb-43fa-9bbb-c8da2c706128\",\n \"_index\": \"logs-2026-04\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782797512195671,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_id\": \"07a21f89-3f86-4f4e-95e8-38c1eb1cff33\",\n \"_index\": \"logs-2026-04\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782797512195671,\n \"_shards\": {\n \"failed\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"_version\": 1,\n \"result\": \"created\",\n \"status\": 201\n }\n }\n ],\n \"took\": 1\n}"},{"label": "refresh",@@ -380,7 +380,7 @@"cmd": "curl -s -XPOST \"http://localhost:9200/logs-2026-04/_search\" \\\n -H 'content-type: application/json' \\\n -d '{\"query\":{\"term\":{\"level\":\"error\"}}}'","status": 200,"pass": true,- "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"68a7e704-14b3-49b7-8fff-6360046c5b93\",\n \"_index\": \"logs-2026-04\",\n \"_score\": 1.6931471824645996,\n \"_source\": {\n \"@timestamp\": \"2026-04-26T19:47:24Z\",\n \"level\": \"error\",\n \"msg\": \"timeout\",\n \"svc\": \"api\"\n }\n },\n {\n \"_id\": \"6bb266ed-93fe-41ce-9d66-136ab8fe87ba\",\n \"_index\": \"logs-2026-04\",\n \"_score\": 1.6931471824645996,\n \"_source\": {\n \"@timestamp\": \"2026-04-26T19:47:24Z\",\n \"level\": \"error\",\n \"msg\": \"5xx upstream\",\n \"svc\": \"web\"\n }\n }\n ],\n \"max_score\": 1.6931471824645996,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 2\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"133a0e30-3416-43d2-8849-3d98da564a53\",\n \"_index\": \"logs-2026-04\",\n \"_score\": 1.6931471824645996,\n \"_source\": {\n \"@timestamp\": \"2026-04-26T19:47:24Z\",\n \"level\": \"error\",\n \"msg\": \"timeout\",\n \"svc\": \"api\"\n }\n },\n {\n \"_id\": \"6950e233-9fbb-43fa-9bbb-c8da2c706128\",\n \"_index\": \"logs-2026-04\",\n \"_score\": 1.6931471824645996,\n \"_source\": {\n \"@timestamp\": \"2026-04-26T19:47:24Z\",\n \"level\": \"error\",\n \"msg\": \"5xx upstream\",\n \"svc\": \"web\"\n }\n }\n ],\n \"max_score\": 1.6931471824645996,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 2\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"},{"label": "count by level",@@ -408,21 +408,21 @@"cmd": "curl -s \"http://localhost:9200/\"","status": 200,"pass": true,- "output": "{\n \"name\": \"xerj-node-66d6c077\",\n \"cluster_name\": \"xerj\",\n \"cluster_uuid\": \"xerj-cluster-0000-0000-0000-000000000000\",\n \"version\": {\n \"number\": \"8.13.0\",\n \"build_flavor\": \"default\",\n \"build_type\": \"tar\",\n \"build_hash\": \"00000000\",\n \"build_date\": \"2024-03-22T00:00:00.000Z\",\n \"build_snapshot\": false,\n \"lucene_version\": \"9.10.0\",\n \"minimum_wire_compatibility_version\": \"7.17.0\",\n \"minimum_index_compatibility_version\": \"7.0.0\"\n },\n \"tagline\": \"You Know, for Search\"\n}"+ "output": "{\n \"name\": \"xerj-node-c69932ac\",\n \"cluster_name\": \"xerj\",\n \"cluster_uuid\": \"xerj-cluster-0000-0000-0000-000000000000\",\n \"version\": {\n \"number\": \"8.13.0\",\n \"build_flavor\": \"default\",\n \"build_type\": \"tar\",\n \"build_hash\": \"00000000\",\n \"build_date\": \"2024-03-22T00:00:00.000Z\",\n \"build_snapshot\": false,\n \"lucene_version\": \"9.10.0\",\n \"minimum_wire_compatibility_version\": \"7.17.0\",\n \"minimum_index_compatibility_version\": \"7.0.0\"\n },\n \"tagline\": \"You Know, for Search\"\n}"},{"label": "_cat/indices (ops tooling)","cmd": "curl -s \"http://localhost:9200/_cat/indices?v\"","status": 200,"pass": true,- "output": "green open .xerj_cluster_state 96c36337-d6b1-47f9-9905-e356b6cecb04 1 0 0 0\ngreen open .xerj_api_tokens 1899253e-420a-40a1-af69-6bee59291936 1 0 0 0\ngreen open .xerj_prefs 12f27538-0e09-44e0-aa4b-a0bf44914b23 1 0 0 0\ngreen open logs-2026-04 f00d351d-25ca-465f-99d6-945449e0985e 1 0 4 0\ngreen open articles 1d2028e5-ec5e-4841-bb85-3dc07ba0ee45 1 0 5 0\ngreen open .xerj_dashboards c1be10bb-e64c-4474-bb9b-1314b7a507b4 1 0 0 0\ngreen open .xerj_users c8abbbd2-e317-4e87-9ee4-1cb3f76a8bd5 1 0 0 0\ngreen open .xerj_passkeys ab84e4b4-c7f5-477a-8adc-bcdd2a46822c 1 0 0 0\ngreen open vstore a0fc834d-e792-43ad-ab29-ab698d0d7124 1 0 3 0\ngreen open .xerj_alert_rules 175ed6ba-f804-4b85-b402-b28d4c02ff8d 1 0 0 0\ngreen open .xerj_magic_links 5d8ee201-a207-4952-ae6f-f9d013978b41 1 0 1 0\ngreen open .xerj_idp_config 9c1e2518-68ef-495e-8e9f-70588dac66cc 1 0 0 0\ngreen open .xerj_sessions 239d4dc1-fa8a-49de-8e5c-36d451fc3907 1 0 0 0\ngreen open .xerj_audit 3fd87f94-f6a7-4dda-b7c0-5ee14d7b0c3a 1 0 0 0\ngreen open .xerj_connections 776f68be-7795-4db5-8c7c-029ce4d03fcd 1 0 0 0\ngreen open .xerj_alert_fires e5705c2b-ee99-4d42-b04a-0733bbc0b421 1 0 0 0\ngreen open .xerj_views 3293e930-eb61-4342-88b7-d2ac2347ee69 1 0 0 0"+ "output": "green open .xerj_users 15eeb6ba-d851-4bdc-bf09-8880a062053e 1 0 0 0\ngreen open .xerj_prefs d43de18b-368e-4cc5-ba42-494607ba17ba 1 0 0 0\ngreen open .xerj_connections 0afdeeaf-fa34-41eb-a509-76f53c8e5627 1 0 0 0\ngreen open .xerj_magic_links 381a4093-cf49-4d92-b87e-e75b73a48f18 1 0 1 0\ngreen open .xerj_sessions 8d7776ef-6b9e-45fa-b8ef-3efea8f71622 1 0 0 0\ngreen open .xerj_views 0e6edae4-8f94-4dbd-9fd7-041eed5023b2 1 0 0 0\ngreen open articles d4d4d2de-6262-4996-8b1f-21f8e3044818 1 0 5 0\ngreen open .xerj_api_tokens e55b7c3b-1f86-4943-8fcd-a20aeac4f756 1 0 0 0\ngreen open vstore 7a0e45d3-7433-4d3e-a154-cdbf955fd82b 1 0 3 0\ngreen open logs-2026-04 d74aeacb-c3da-4193-b085-dc6ccf9f3b9d 1 0 4 0\ngreen open .xerj_idp_config a0f89379-2241-4060-9edf-571782d6d64c 1 0 0 0\ngreen open .xerj_alert_fires d10d3f93-84b6-4601-a9c4-52a3ddd7f2f4 1 0 0 0\ngreen open .xerj_passkeys e23768a0-62cd-4ba2-94c9-05a5b05e5129 1 0 0 0\ngreen open .xerj_dashboards de56da56-c4e6-4c70-a489-03ccd18b1d79 1 0 0 0\ngreen open .xerj_alert_rules 09b41441-f5fe-4c5c-a4e7-62da16e6ac4d 1 0 0 0\ngreen open .xerj_audit 426e8c6e-165e-4e1c-a70a-e7c9eafc6b1c 1 0 0 0\ngreen open .xerj_cluster_state 05bc1d6c-b330-4b80-9706-3f390ca66952 1 0 0 0"},{"label": "scroll API (pagination)","cmd": "curl -s -XPOST \"http://localhost:9200/articles/_search?scroll=1m\" \\\n -H 'content-type: application/json' \\\n -d '{\"size\":2,\"query\":{\"match_all\":{}}}'","status": 200,"pass": true,- "output": "{\n \"_scroll_id\": \"56506e1c-84f3-4665-88f1-f7fcf5ddedfa\",\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"1\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"one binary for search\",\n \"tag\": \"intro\",\n \"title\": \"Hello Xerj\",\n \"views\": 42\n }\n },\n {\n \"_id\": \"aab064f6-eecd-4b53-a75c-bf507f99edae\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"alpha vector\",\n \"tag\": \"a\",\n \"title\": \"A\",\n \"views\": 10\n }\n }\n ],\n \"max_score\": 1,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 5\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"+ "output": "{\n \"_scroll_id\": \"3957ab5f-09e3-4bef-8e45-2986249a0089\",\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"1\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"one binary for search\",\n \"tag\": \"intro\",\n \"title\": \"Hello Xerj\",\n \"views\": 42\n }\n },\n {\n \"_id\": \"6e505def-8b8b-4048-a7bb-449a149f8af5\",\n \"_index\": \"articles\",\n \"_score\": 1,\n \"_source\": {\n \"body\": \"alpha vector\",\n \"tag\": \"a\",\n \"title\": \"A\",\n \"views\": 10\n }\n }\n ],\n \"max_score\": 1,\n \"total\": {\n \"relation\": \"eq\",\n \"value\": 5\n }\n },\n \"timed_out\": false,\n \"took\": 0\n}"},{"label": "_delete_by_query",@@ -436,49 +436,49 @@{"id": "11-native-ops","doc": "metrics / operations / api-native",- "title": "Native ops API (:8080) — health & metrics",+ "title": "Native ops API (:8080) — health, metrics, flush, backup","steps": [{"label": "native health","cmd": "curl -s \"http://localhost:8080/v1/health\"","status": 200,"pass": true,- "output": "{\n \"data\": {\n \"status\": \"yellow\",\n \"index_count\": 17,\n \"total_docs\": 11,\n \"version\": \"1.0.0-rc.1\"\n },\n \"took_ms\": 0,\n \"request_id\": \"d64f1a4e-098c-4b04-8e97-586c978341c2\"\n}"+ "output": "{\n \"data\": {\n \"status\": \"yellow\",\n \"index_count\": 17,\n \"total_docs\": 11,\n \"version\": \"1.0.0-rc.1\"\n },\n \"took_ms\": 0,\n \"request_id\": \"5cdfecab-cb65-4485-abeb-ccf5ac92b38d\"\n}"},{- "label": "prometheus scrape",- "cmd": "curl -s \"http://localhost:8080/v1/metrics\"",+ "label": "readiness probe",+ "cmd": "curl -s \"http://localhost:8080/v1/health/ready\"","status": 200,"pass": true,- "output": "# HELP xerj_active_searches Number of searches currently in flight\n# TYPE xerj_active_searches gauge\nxerj_active_searches 0\n# HELP xerj_bytes_read_total Total bytes read from segment files (uncompressed)\n# TYPE xerj_bytes_read_total counter\nxerj_bytes_read_total 0\n# HELP xerj_bytes_written_total Total bytes written to segment files (uncompressed)\n# TYPE xerj_bytes_written_total counter\nxerj_bytes_written_total 0\n# HELP xerj_doc_count Total live documents across all indices\n# TYPE xerj_doc_count gauge\nxerj_doc_count 0\n# HELP xerj_docs_indexed_by_index_total Documents indexed, labelled by index name\n# TYPE xerj_docs_indexed_by_index_total counter\nxerj_docs_indexed_by_index_total{index=\"articles\"} 1\n# HELP xerj_docs_indexed_total Total number of documents successfully indexed\n# TYPE xerj_docs_indexed_total counter\nxerj_docs_indexed_total 1\n# HELP xerj_flush_duration_seconds Time to flush an in-memory buffer to a segment\n# TYPE xerj_flush_duration_seconds histogram\nxerj_flush_duration_seconds_bucket{le=\"0.01\"} 0\nxerj_flush_duration_seconds_bucket{le=\"0.02\"} 0\nxerj_flush_duration_seconds_bucket{le=\"0.04\"} 0\nxerj_flush_duration_seconds_bucket{le=\"0.08\"} 0\nxerj_flush_duration_seconds_bucket{le=\"0.16\"} 0\nxerj_flush_duration_seconds_bucket{le=\"0.32\"} 0\nxerj_flush_duration_seconds_bucket{le=\"0.64\"} 0\nxerj_flush_duration_seconds_bucket{le=\"1.28\"} 0\nxerj_flush_duration_seconds_bucket{le=\"2.56\"} 0\nxerj_flush_duration_seconds_bucket{le=\"5.12\"} 0\nxerj_flush_duration_seconds_bucket{le=\"10.24\"} 0\nxerj_flush_duration_seconds_bucket{le=\"20.48\"} 0\nxerj_flush_duration_seconds_bucket{le=\"40.96\"} 0\nxerj_flush_duration_seconds_bucket{le=\"81.92\"} 0\nxerj_flush_duration_seconds_bucket{le=\"163.84\"} 0\nxerj_flush_duration_seconds_bucket{le=\"+Inf\"} 0\nxerj_flush_duration_seconds_sum 0\nxerj_flush_duration_seconds_count 0\n# HELP xerj_index_latency_seconds End-to-end document indexing latency\n# TYPE xerj_index_latency_seconds histogram\nxerj_index_latency_seconds_bucket{le=\"0.0005\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.001\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.002\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.004\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.008\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.016\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.032\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.064\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.128\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.256\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.512\"} 0\nxerj_index_latency_seconds_bucket{le=\"1.024\"} 0\nxerj_index_latency_seconds_bucket{le=\"2.048\"} 0\nxerj_index_latency_seconds_bucket{le=\"4.096\"} 0\nxerj_index_latency_seconds_bucket{le=\"8.192\"} 0\nxerj_index_latency_seconds_bucket{le=\"+Inf\"} 0\nxerj_index_latency_seconds_sum 0\nxerj_index_latency_seconds_count 0\n# HELP xerj_memory_usage_bytes Approximate engine memory usage in bytes\n# TYPE xerj_memory_usage_bytes gauge\nxerj_memory_usage_bytes 0\n# HELP xerj_merge_duration_seconds Time to complete a segment merge operation\n# TYPE xerj_merge_duration_seconds histogram\nxerj_merge_duration_seconds_bucket{le=\"0.01\"} 0\nxerj_merge_duration_seconds_bucket{le=\"0.02\"} 0\nxerj_merge_duration_seconds_bucket{le=\"0.04\"} 0\nxerj_merge_duration_seconds_bucket{le=\"0.08\"} 0\nxerj_merge_duration_seconds_bucket{le=\"0.16\"} 0\nxerj_merge_duration_seconds_bucket{le=\"0.32\"} 0\nxerj_merge_duration_seconds_bucket{le=\"0.64\"} 0\nxerj_merge_duration_seconds_bucket{le=\"1.28\"} 0\nxerj_merge_duration_seconds_bucket{le=\"2.56\"} 0\nxerj_merge_duration_seconds_bucket{le=\"5.12\"} 0\nxerj_merge_duration_seconds_bucket{le=\"10.24\"} 0\nxerj_merge_duration_seconds_bucket{le=\"20.48\"} 0\nxerj_merge_duration_seconds_bucket{le=\"40.96\"} 0\nxerj_merge_duration_seconds_bucket{le=\"81.92\"} 0\nxerj_merge_duration_seconds_bucket{le=\"163.84\"} 0\nxerj_merge_duration_seconds_bucket{le=\"+Inf\"} 0\nxerj_merge_duration_seconds_sum 0\nxerj_merge_duration_seconds_count 0\n# HELP xerj_queries_by_index_total Queries executed, labelled by index name\n# TYPE xerj_queries_by_index_total counter\nxerj_queries_by_index_total{index=\"articles\"} 21\nxerj_queries_by_index_total{index=\"articles_live\"} 1\nxerj_queries_by_index_total{index=\"logs-2026-04\"} 3\nxerj_queries_by_index_total{index=\"vstore\"} 1\n# HELP xerj_queries_executed_total Total number of search queries executed\n# TYPE xerj_queries_executed_total counter\nxerj_queries_executed_total 26\n# HELP xerj_query_latency_seconds End-to-end query latency\n# TYPE xerj_query_latency_seconds histogram\nxerj_query_latency_seconds_bucket{le=\"0.0005\"} 25\nxerj_query_latency_seconds_bucket{le=\"0.001\"} 26\nxerj_query_latency_seconds_bucket{le=\"0.002\"} 26\nxerj_query_latency_seconds_bucket{le=\"0.004\"} 26\nxerj_query_latency_seconds_bucket{le=\"0.008\"} 26\nxerj_query_latency_seconds_bucket{le=\"0.016\"} 26\nxerj_query_latency_seconds_bucket{le=\"0.032\"} 26\nxerj_query_latency_seconds_bucket{le=\"0.064\"} 26\nxerj_query_latency_seconds_bucket{le=\"0.128\"} 26\nxerj_query_latency_seconds_bucket{le=\"0.256\"} 26\nxerj_query_latency_seconds_bucket{le=\"0.512\"} 26\nxerj_query_latency_seconds_bucket{le=\"1.024\"} 26\nxerj_query_latency_seconds_bucket{le=\"2.048\"} 26\nxerj_query_latency_seconds_bucket{le=\"4.096\"} 26\nxerj_query_latency_seconds_bucket{le=\"8.192\"} 26\nxerj_query_latency_seconds_bucket{le=\"+Inf\"} 26\nxerj_query_latency_seconds_sum 0.001\nxerj_query_latency_seconds_count 26\n# HELP xerj_segment_count Number of open segments across all indices\n# TYPE xerj_segment_count gauge\nxerj_segment_count 0\n# HELP xerj_wal_size_bytes Current WAL size on disk in bytes\n# TYPE xerj_wal_size_bytes gauge\nxerj_wal_size_bytes 0\n# HELP xerj_wal_write_latency_seconds WAL write latency\n# TYPE xerj_wal_write_latency_seconds histogram\nxerj_wal_write_latency_seconds_bucket{le=\"0.0005\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.001\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.002\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.004\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.008\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.016\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.032\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.064\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.128\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.256\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.512\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"1.024\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"2.048\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"4.096\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"8.192\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"+Inf\"} 0\nxerj_wal_write_latency_seconds_sum 0\nxerj_wal_write_latency_seconds_count 0"+ "output": "ready"},{- "label": "DOC GAP: /v1/health/ready",- "cmd": "curl -s \"http://localhost:8080/v1/health/ready\"",- "status": 404,- "pass": false,- "output": ""+ "label": "prometheus scrape",+ "cmd": "curl -s \"http://localhost:8080/v1/metrics\"",+ "status": 200,+ "pass": true,+ "output": "# HELP xerj_active_searches Number of searches currently in flight\n# TYPE xerj_active_searches gauge\nxerj_active_searches 0\n# HELP xerj_bytes_read_total Total bytes read from segment files (uncompressed)\n# TYPE xerj_bytes_read_total counter\nxerj_bytes_read_total 0\n# HELP xerj_bytes_written_total Total bytes written to segment files (uncompressed)\n# TYPE xerj_bytes_written_total counter\nxerj_bytes_written_total 0\n# HELP xerj_doc_count Total live documents across all indices\n# TYPE xerj_doc_count gauge\nxerj_doc_count 0\n# HELP xerj_docs_indexed_by_index_total Documents indexed, labelled by index name\n# TYPE xerj_docs_indexed_by_index_total counter\nxerj_docs_indexed_by_index_total{index=\"articles\"} 1\n# HELP xerj_docs_indexed_total Total number of documents successfully indexed\n# TYPE xerj_docs_indexed_total counter\nxerj_docs_indexed_total 1\n# HELP xerj_flush_duration_seconds Time to flush an in-memory buffer to a segment\n# TYPE xerj_flush_duration_seconds histogram\nxerj_flush_duration_seconds_bucket{le=\"0.01\"} 0\nxerj_flush_duration_seconds_bucket{le=\"0.02\"} 0\nxerj_flush_duration_seconds_bucket{le=\"0.04\"} 0\nxerj_flush_duration_seconds_bucket{le=\"0.08\"} 0\nxerj_flush_duration_seconds_bucket{le=\"0.16\"} 0\nxerj_flush_duration_seconds_bucket{le=\"0.32\"} 0\nxerj_flush_duration_seconds_bucket{le=\"0.64\"} 0\nxerj_flush_duration_seconds_bucket{le=\"1.28\"} 0\nxerj_flush_duration_seconds_bucket{le=\"2.56\"} 0\nxerj_flush_duration_seconds_bucket{le=\"5.12\"} 0\nxerj_flush_duration_seconds_bucket{le=\"10.24\"} 0\nxerj_flush_duration_seconds_bucket{le=\"20.48\"} 0\nxerj_flush_duration_seconds_bucket{le=\"40.96\"} 0\nxerj_flush_duration_seconds_bucket{le=\"81.92\"} 0\nxerj_flush_duration_seconds_bucket{le=\"163.84\"} 0\nxerj_flush_duration_seconds_bucket{le=\"+Inf\"} 0\nxerj_flush_duration_seconds_sum 0\nxerj_flush_duration_seconds_count 0\n# HELP xerj_index_latency_seconds End-to-end document indexing latency\n# TYPE xerj_index_latency_seconds histogram\nxerj_index_latency_seconds_bucket{le=\"0.0005\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.001\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.002\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.004\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.008\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.016\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.032\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.064\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.128\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.256\"} 0\nxerj_index_latency_seconds_bucket{le=\"0.512\"} 0\nxerj_index_latency_seconds_bucket{le=\"1.024\"} 0\nxerj_index_latency_seconds_bucket{le=\"2.048\"} 0\nxerj_index_latency_seconds_bucket{le=\"4.096\"} 0\nxerj_index_latency_seconds_bucket{le=\"8.192\"} 0\nxerj_index_latency_seconds_bucket{le=\"+Inf\"} 0\nxerj_index_latency_seconds_sum 0\nxerj_index_latency_seconds_count 0\n# HELP xerj_memory_usage_bytes Approximate engine memory usage in bytes\n# TYPE xerj_memory_usage_bytes gauge\nxerj_memory_usage_bytes 0\n# HELP xerj_merge_duration_seconds Time to complete a segment merge operation\n# TYPE xerj_merge_duration_seconds histogram\nxerj_merge_duration_seconds_bucket{le=\"0.01\"} 0\nxerj_merge_duration_seconds_bucket{le=\"0.02\"} 0\nxerj_merge_duration_seconds_bucket{le=\"0.04\"} 0\nxerj_merge_duration_seconds_bucket{le=\"0.08\"} 0\nxerj_merge_duration_seconds_bucket{le=\"0.16\"} 0\nxerj_merge_duration_seconds_bucket{le=\"0.32\"} 0\nxerj_merge_duration_seconds_bucket{le=\"0.64\"} 0\nxerj_merge_duration_seconds_bucket{le=\"1.28\"} 0\nxerj_merge_duration_seconds_bucket{le=\"2.56\"} 0\nxerj_merge_duration_seconds_bucket{le=\"5.12\"} 0\nxerj_merge_duration_seconds_bucket{le=\"10.24\"} 0\nxerj_merge_duration_seconds_bucket{le=\"20.48\"} 0\nxerj_merge_duration_seconds_bucket{le=\"40.96\"} 0\nxerj_merge_duration_seconds_bucket{le=\"81.92\"} 0\nxerj_merge_duration_seconds_bucket{le=\"163.84\"} 0\nxerj_merge_duration_seconds_bucket{le=\"+Inf\"} 0\nxerj_merge_duration_seconds_sum 0\nxerj_merge_duration_seconds_count 0\n# HELP xerj_queries_by_index_total Queries executed, labelled by index name\n# TYPE xerj_queries_by_index_total counter\nxerj_queries_by_index_total{index=\"articles\"} 21\nxerj_queries_by_index_total{index=\"articles_live\"} 1\nxerj_queries_by_index_total{index=\"logs-2026-04\"} 3\nxerj_queries_by_index_total{index=\"vstore\"} 1\n# HELP xerj_queries_executed_total Total number of search queries executed\n# TYPE xerj_queries_executed_total counter\nxerj_queries_executed_total 26\n# HELP xerj_query_latency_seconds End-to-end query latency\n# TYPE xerj_query_latency_seconds histogram\nxerj_query_latency_seconds_bucket{le=\"0.0005\"} 26\nxerj_query_latency_seconds_bucket{le=\"0.001\"} 26\nxerj_query_latency_seconds_bucket{le=\"0.002\"} 26\nxerj_query_latency_seconds_bucket{le=\"0.004\"} 26\nxerj_query_latency_seconds_bucket{le=\"0.008\"} 26\nxerj_query_latency_seconds_bucket{le=\"0.016\"} 26\nxerj_query_latency_seconds_bucket{le=\"0.032\"} 26\nxerj_query_latency_seconds_bucket{le=\"0.064\"} 26\nxerj_query_latency_seconds_bucket{le=\"0.128\"} 26\nxerj_query_latency_seconds_bucket{le=\"0.256\"} 26\nxerj_query_latency_seconds_bucket{le=\"0.512\"} 26\nxerj_query_latency_seconds_bucket{le=\"1.024\"} 26\nxerj_query_latency_seconds_bucket{le=\"2.048\"} 26\nxerj_query_latency_seconds_bucket{le=\"4.096\"} 26\nxerj_query_latency_seconds_bucket{le=\"8.192\"} 26\nxerj_query_latency_seconds_bucket{le=\"+Inf\"} 26\nxerj_query_latency_seconds_sum 0\nxerj_query_latency_seconds_count 26\n# HELP xerj_segment_count Number of open segments across all indices\n# TYPE xerj_segment_count gauge\nxerj_segment_count 0\n# HELP xerj_wal_size_bytes Current WAL size on disk in bytes\n# TYPE xerj_wal_size_bytes gauge\nxerj_wal_size_bytes 0\n# HELP xerj_wal_write_latency_seconds WAL write latency\n# TYPE xerj_wal_write_latency_seconds histogram\nxerj_wal_write_latency_seconds_bucket{le=\"0.0005\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.001\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.002\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.004\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.008\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.016\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.032\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.064\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.128\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.256\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"0.512\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"1.024\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"2.048\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"4.096\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"8.192\"} 0\nxerj_wal_write_latency_seconds_bucket{le=\"+Inf\"} 0\nxerj_wal_write_latency_seconds_sum 0\nxerj_wal_write_latency_seconds_count 0"},{- "label": "DOC GAP: /v1/cluster/health",+ "label": "cluster health","cmd": "curl -s \"http://localhost:8080/v1/cluster/health\"",- "status": 404,- "pass": false,- "output": ""+ "status": 200,+ "pass": true,+ "output": "{\n \"data\": {\n \"cluster_name\": \"xerj\",\n \"index_count\": 17,\n \"number_of_data_nodes\": 1,\n \"number_of_nodes\": 1,\n \"status\": \"yellow\",\n \"total_docs\": 11,\n \"version\": \"1.0.0-rc.1\"\n },\n \"took_ms\": 0,\n \"request_id\": \"401a3bfa-5151-4585-ba88-b6eea7fb8b70\"\n}"},{- "label": "DOC GAP: /v1/admin/flush",+ "label": "cluster-wide flush","cmd": "curl -s -XPOST \"http://localhost:8080/v1/admin/flush\"",- "status": 404,- "pass": false,- "output": ""+ "status": 200,+ "pass": true,+ "output": "{\n \"data\": {\n \"failed\": [],\n \"flushed\": 17,\n \"indices\": [\n \".xerj_users\",\n \".xerj_prefs\",\n \".xerj_connections\",\n \".xerj_magic_links\",\n \".xerj_sessions\",\n \".xerj_views\",\n \"articles\",\n \".xerj_api_tokens\",\n \"vstore\",\n \"logs-2026-04\",\n \".xerj_idp_config\",\n \".xerj_alert_fires\",\n \".xerj_passkeys\",\n \".xerj_dashboards\",\n \".xerj_alert_rules\",\n \".xerj_audit\",\n \".xerj_cluster_state\"\n ]\n },\n \"took_ms\": 6,\n \"request_id\": \"2bbde9cd-e4a8-4905-a778-06d71a2ec32b\"\n}"},{- "label": "DOC GAP: /v1/admin/backup",+ "label": "backup (snapshot to disk)","cmd": "curl -s -XPOST \"http://localhost:8080/v1/admin/backup\" \\\n -H 'content-type: application/json' \\\n -d '{}'",- "status": 404,- "pass": false,- "output": ""+ "status": 201,+ "pass": true,+ "output": "{\n \"data\": {\n \"backup\": \"backup-4c0811fe-c67e-4343-988d-7f89817ab3d9\",\n \"manifest\": {\n \"duration_in_millis\": 0,\n \"end_time_in_millis\": 1782797512303,\n \"failures\": [],\n \"index_files\": [\n {\n \"files\": [\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\"\n ],\n \"name\": \".xerj_users\"\n },\n {\n \"files\": [\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\"\n ],\n \"name\": \".xerj_prefs\"\n },\n {\n \"files\": [\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\"\n ],\n \"name\": \".xerj_connections\"\n },\n {\n \"files\": [\n \"snapshot.json\",\n \"schema.json\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.expires_at.norms\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.expires_at.meta\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.user_id.norms\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.user_id.meta\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.created_at.norms\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.created_at.meta\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.email.norms\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.used_from_ip.norms\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.email.meta\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.role.norms\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.used_from_ip.meta\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.role.meta\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.purpose.norms\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.purpose.meta\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.used_at.norms\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.used_at.meta\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.created_by.norms\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.expires_at.fst\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.purpose.fst\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.created_by.meta\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.used_at.fst\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.user_id.fst\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.used_from_ip.fst\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.role.fst\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.email.fst\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.created_at.fst\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.expires_at.post\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.purpose.post\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.used_at.post\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.user_id.post\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.used_from_ip.post\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.created_by.fst\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.email.post\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.created_at.post\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.role.post\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.created_by.post\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.dv\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.ids\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.sidx\",\n \"d4d72085-b349-4fe5-be3a-1570ff14d8fe.seg\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000001.wchk\",\n \"0000000000000001.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\"\n ],\n \"name\": \".xerj_magic_links\"\n },\n {\n \"files\": [\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\"\n ],\n \"name\": \".xerj_sessions\"\n },\n {\n \"files\": [\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\"\n ],\n \"name\": \".xerj_views\"\n },\n {\n \"files\": [\n \"snapshot.json\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.body.norms\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.body.meta\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.body.norms\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.body.meta\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.tag.norms\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.views.norms\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.tag.meta\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.views.meta\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.title.norms\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.title.norms\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.tag.norms\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.title.meta\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.title.meta\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.body.fst\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.tag.meta\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.body.post\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.views.fst\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.tag.fst\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.views.post\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.tag.post\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.title.fst\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.views.norms\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.title.post\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.views.meta\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.dv\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.body.fst\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.body.post\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.title.fst\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.title.post\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.tag.fst\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.tag.post\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.views.fst\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.views.post\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.body.norms\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.dv\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.body.meta\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.body.norms\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.body.meta\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.views.norms\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.views.meta\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.title.norms\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.title.meta\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.title.norms\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.title.meta\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.title.norms\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.title.meta\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.body.norms\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.body.meta\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.tag.norms\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.tag.meta\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.views.norms\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.views.meta\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.ids\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.sidx\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.body.fst\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.views.fst\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.title.fst\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.title.fst\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.tag.fst\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.body.fst\",\n \"e068bbf1-7460-405f-9d92-add636fcd171.seg\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.ids\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.body.fst\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.body.post\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.views.post\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.title.post\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.title.post\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.tag.post\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.views.fst\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.body.post\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.title.fst\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.sidx\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.body.post\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.views.post\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.tag.norms\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.tag.meta\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.tag.norms\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.tag.meta\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.views.norms\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.views.meta\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.tag.fst\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.tag.post\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.title.post\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.tag.fst\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.dv\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.tag.post\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.views.fst\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.views.post\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.dv\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.dv\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.ids\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.ids\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.sidx\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.sidx\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.ids\",\n \"4dc2678d-a452-4379-9161-0c2eaf9a7668.seg\",\n \"68d88f9b-2973-4e29-8624-21810fc604f2.seg\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.sidx\",\n \"acd2b150-0319-47ae-b4f2-e0dca2fb7a91.seg\",\n \"0adfd6cb-5a9e-4a8f-bc44-2a4b2b84e3c1.seg\",\n \"0000000000000002.wchk\",\n \"0000000000000002.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000001.wchk\",\n \"0000000000000001.wal\",\n \"0000000000000001.wchk\",\n \"0000000000000001.wal\",\n \"0000000000000001.wchk\",\n \"0000000000000001.wal\",\n \"0000000000000002.wchk\",\n \"0000000000000002.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\"\n ],\n \"name\": \"articles\"\n },\n {\n \"files\": [\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\"\n ],\n \"name\": \".xerj_api_tokens\"\n },\n {\n \"files\": [\n \"ids.json\",\n \"graph.bin\",\n \"snapshot.json\",\n \"3b3ee90d-a10c-446e-8aac-c6e1c098ec95.text.norms\",\n \"3b3ee90d-a10c-446e-8aac-c6e1c098ec95.text.meta\",\n \"3b3ee90d-a10c-446e-8aac-c6e1c098ec95.embedding.norms\",\n \"3b3ee90d-a10c-446e-8aac-c6e1c098ec95.embedding.meta\",\n \"3b3ee90d-a10c-446e-8aac-c6e1c098ec95.text.fst\",\n \"3b3ee90d-a10c-446e-8aac-c6e1c098ec95.embedding.fst\",\n \"63d09935-9df6-4ec5-9389-619da29c72c3.embedding.norms\",\n \"3b3ee90d-a10c-446e-8aac-c6e1c098ec95.text.post\",\n \"3b3ee90d-a10c-446e-8aac-c6e1c098ec95.embedding.post\",\n \"63d09935-9df6-4ec5-9389-619da29c72c3.text.norms\",\n \"63d09935-9df6-4ec5-9389-619da29c72c3.embedding.meta\",\n \"63d09935-9df6-4ec5-9389-619da29c72c3.text.meta\",\n \"3b3ee90d-a10c-446e-8aac-c6e1c098ec95.dv\",\n \"63d09935-9df6-4ec5-9389-619da29c72c3.embedding.fst\",\n \"15f55894-3696-4c8a-82b9-df478114a0d1.embedding.norms\",\n \"63d09935-9df6-4ec5-9389-619da29c72c3.text.fst\",\n \"15f55894-3696-4c8a-82b9-df478114a0d1.embedding.meta\",\n \"63d09935-9df6-4ec5-9389-619da29c72c3.embedding.post\",\n \"63d09935-9df6-4ec5-9389-619da29c72c3.text.post\",\n \"63d09935-9df6-4ec5-9389-619da29c72c3.dv\",\n \"15f55894-3696-4c8a-82b9-df478114a0d1.text.norms\",\n \"15f55894-3696-4c8a-82b9-df478114a0d1.text.meta\",\n \"15f55894-3696-4c8a-82b9-df478114a0d1.text.fst\",\n \"15f55894-3696-4c8a-82b9-df478114a0d1.text.post\",\n \"15f55894-3696-4c8a-82b9-df478114a0d1.embedding.fst\",\n \"15f55894-3696-4c8a-82b9-df478114a0d1.embedding.post\",\n \"15f55894-3696-4c8a-82b9-df478114a0d1.dv\",\n \"3b3ee90d-a10c-446e-8aac-c6e1c098ec95.ids\",\n \"3b3ee90d-a10c-446e-8aac-c6e1c098ec95.sidx\",\n \"63d09935-9df6-4ec5-9389-619da29c72c3.ids\",\n \"15f55894-3696-4c8a-82b9-df478114a0d1.ids\",\n \"63d09935-9df6-4ec5-9389-619da29c72c3.sidx\",\n \"15f55894-3696-4c8a-82b9-df478114a0d1.sidx\",\n \"3b3ee90d-a10c-446e-8aac-c6e1c098ec95.seg\",\n \"63d09935-9df6-4ec5-9389-619da29c72c3.seg\",\n \"15f55894-3696-4c8a-82b9-df478114a0d1.seg\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000001.wchk\",\n \"0000000000000001.wal\",\n \"0000000000000001.wchk\",\n \"0000000000000001.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000001.wchk\",\n \"0000000000000001.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\"\n ],\n \"name\": \"vstore\"\n },\n {\n \"files\": [\n \"snapshot.json\",\n \"schema.json\",\n \"[email protected]\",\n \"[email protected]\",\n \"11219357-be70-42d8-b28e-7561c4b350b2.msg.norms\",\n \"11219357-be70-42d8-b28e-7561c4b350b2.msg.meta\",\n \"[email protected]\",\n \"5ec85c50-055c-4916-83be-102d72b72e49.svc.norms\",\n \"[email protected]\",\n \"8e30a806-4356-420e-89bd-466dc319196b.svc.norms\",\n \"5ec85c50-055c-4916-83be-102d72b72e49.svc.meta\",\n \"8e30a806-4356-420e-89bd-466dc319196b.svc.meta\",\n \"11219357-be70-42d8-b28e-7561c4b350b2.level.norms\",\n \"11219357-be70-42d8-b28e-7561c4b350b2.level.meta\",\n \"572e1881-1945-407a-ae4c-59c525b56d9e.level.norms\",\n \"572e1881-1945-407a-ae4c-59c525b56d9e.svc.norms\",\n \"[email protected]\",\n \"5ec85c50-055c-4916-83be-102d72b72e49.msg.norms\",\n \"572e1881-1945-407a-ae4c-59c525b56d9e.level.meta\",\n \"572e1881-1945-407a-ae4c-59c525b56d9e.svc.meta\",\n \"[email protected]\",\n \"8e30a806-4356-420e-89bd-466dc319196b.msg.norms\",\n \"5ec85c50-055c-4916-83be-102d72b72e49.level.norms\",\n \"5ec85c50-055c-4916-83be-102d72b72e49.msg.meta\",\n \"8e30a806-4356-420e-89bd-466dc319196b.msg.meta\",\n \"5ec85c50-055c-4916-83be-102d72b72e49.level.meta\",\n \"11219357-be70-42d8-b28e-7561c4b350b2.svc.norms\",\n \"11219357-be70-42d8-b28e-7561c4b350b2.svc.meta\",\n \"[email protected]\",\n \"[email protected]\",\n \"572e1881-1945-407a-ae4c-59c525b56d9e.msg.norms\",\n \"572e1881-1945-407a-ae4c-59c525b56d9e.msg.meta\",\n \"11219357-be70-42d8-b28e-7561c4b350b2.msg.fst\",\n \"11219357-be70-42d8-b28e-7561c4b350b2.msg.post\",\n \"572e1881-1945-407a-ae4c-59c525b56d9e.svc.fst\",\n \"5ec85c50-055c-4916-83be-102d72b72e49.msg.fst\",\n \"8e30a806-4356-420e-89bd-466dc319196b.msg.fst\",\n \"[email protected]\",\n \"572e1881-1945-407a-ae4c-59c525b56d9e.svc.post\",\n \"5ec85c50-055c-4916-83be-102d72b72e49.msg.post\",\n \"[email protected]\",\n \"8e30a806-4356-420e-89bd-466dc319196b.level.norms\",\n \"[email protected]\",\n \"572e1881-1945-407a-ae4c-59c525b56d9e.msg.fst\",\n \"8e30a806-4356-420e-89bd-466dc319196b.msg.post\",\n \"11219357-be70-42d8-b28e-7561c4b350b2.level.fst\",\n \"11219357-be70-42d8-b28e-7561c4b350b2.svc.fst\",\n \"[email protected]\",\n \"5ec85c50-055c-4916-83be-102d72b72e49.svc.fst\",\n \"572e1881-1945-407a-ae4c-59c525b56d9e.level.fst\",\n \"8e30a806-4356-420e-89bd-466dc319196b.svc.fst\",\n \"8e30a806-4356-420e-89bd-466dc319196b.level.meta\",\n \"5ec85c50-055c-4916-83be-102d72b72e49.level.fst\",\n \"[email protected]\",\n \"572e1881-1945-407a-ae4c-59c525b56d9e.msg.post\",\n \"11219357-be70-42d8-b28e-7561c4b350b2.svc.post\",\n \"11219357-be70-42d8-b28e-7561c4b350b2.level.post\",\n \"[email protected]\",\n \"5ec85c50-055c-4916-83be-102d72b72e49.svc.post\",\n \"572e1881-1945-407a-ae4c-59c525b56d9e.level.post\",\n \"5ec85c50-055c-4916-83be-102d72b72e49.level.post\",\n \"8e30a806-4356-420e-89bd-466dc319196b.svc.post\",\n \"[email protected]\",\n \"[email protected]\",\n \"8e30a806-4356-420e-89bd-466dc319196b.level.fst\",\n \"8e30a806-4356-420e-89bd-466dc319196b.level.post\",\n \"572e1881-1945-407a-ae4c-59c525b56d9e.dv\",\n \"8e30a806-4356-420e-89bd-466dc319196b.dv\",\n \"5ec85c50-055c-4916-83be-102d72b72e49.dv\",\n \"11219357-be70-42d8-b28e-7561c4b350b2.dv\",\n \"11219357-be70-42d8-b28e-7561c4b350b2.ids\",\n \"8e30a806-4356-420e-89bd-466dc319196b.ids\",\n \"11219357-be70-42d8-b28e-7561c4b350b2.sidx\",\n \"572e1881-1945-407a-ae4c-59c525b56d9e.ids\",\n \"8e30a806-4356-420e-89bd-466dc319196b.sidx\",\n \"572e1881-1945-407a-ae4c-59c525b56d9e.sidx\",\n \"11219357-be70-42d8-b28e-7561c4b350b2.seg\",\n \"5ec85c50-055c-4916-83be-102d72b72e49.ids\",\n \"8e30a806-4356-420e-89bd-466dc319196b.seg\",\n \"5ec85c50-055c-4916-83be-102d72b72e49.sidx\",\n \"572e1881-1945-407a-ae4c-59c525b56d9e.seg\",\n \"5ec85c50-055c-4916-83be-102d72b72e49.seg\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000001.wchk\",\n \"0000000000000001.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000001.wchk\",\n \"0000000000000001.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000001.wchk\",\n \"0000000000000001.wal\",\n \"0000000000000001.wchk\",\n \"0000000000000001.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\"\n ],\n \"name\": \"logs-2026-04\"\n },\n {\n \"files\": [\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\"\n ],\n \"name\": \".xerj_idp_config\"\n },\n {\n \"files\": [\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\"\n ],\n \"name\": \".xerj_alert_fires\"\n },\n {\n \"files\": [\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\"\n ],\n \"name\": \".xerj_passkeys\"\n },\n {\n \"files\": [\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\"\n ],\n \"name\": \".xerj_dashboards\"\n },\n {\n \"files\": [\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\"\n ],\n \"name\": \".xerj_alert_rules\"\n },\n {\n \"files\": [\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\"\n ],\n \"name\": \".xerj_audit\"\n },\n {\n \"files\": [\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.wal\"\n ],\n \"name\": \".xerj_cluster_state\"\n }\n ],\n \"indices\": [\n \".xerj_users\",\n \".xerj_prefs\",\n \".xerj_connections\",\n \".xerj_magic_links\",\n \".xerj_sessions\",\n \".xerj_views\",\n \"articles\",\n \".xerj_api_tokens\",\n \"vstore\",\n \"logs-2026-04\",\n \".xerj_idp_config\",\n \".xerj_alert_fires\",\n \".xerj_passkeys\",\n \".xerj_dashboards\",\n \".xerj_alert_rules\",\n \".xerj_audit\",\n \".xerj_cluster_state\"\n ],\n \"shards\": {\n \"failed\": 0,\n \"successful\": 17,\n \"total\": 17\n },\n \"snapshot\": \"backup-4c0811fe-c67e-4343-988d-7f89817ab3d9\",\n \"start_time_in_millis\": 1782797512303,\n \"state\": \"SUCCESS\",\n \"uuid\": \"1108f5e8-9165-44b2-98cf-426219eb24d5\",\n \"version\": \"8.13.0\"\n },\n \"repo_path\": \"/tmp/xerj/data/_backups\"\n },\n \"took_ms\": 12,\n \"request_id\": \"3c4cae38-12a4-48c0-9ac7-d60dce6cbbbc\"\n}"}]},diff --git a/demo/playbooks/run.mjs b/demo/playbooks/run.mjsindex 7d2579203..ee6736109 100644--- a/demo/playbooks/run.mjs+++ b/demo/playbooks/run.mjs@@ -170,15 +170,15 @@ const PB = [{ label: '_delete_by_query', method: 'POST', url: `${ES}/articles/_delete_by_query`, json: { query: { term: { tag: 'b' } } }, expect: { body: /"deleted"/ } },] },- { id: '11-native-ops', doc: 'metrics / operations / api-native', title: 'Native ops API (:8080) — health & metrics',- intro: 'The native v1 surface for ops. NOTE: this binary implements health + metrics; the rest of the documented /v1 API is not yet live (captured as gaps).',+ { id: '11-native-ops', doc: 'metrics / operations / api-native', title: 'Native ops API (:8080) — health, metrics, flush, backup',+ intro: 'The native v1 ops surface: health + readiness probes, prometheus metrics, cluster health, a cluster-wide flush, and an on-disk backup (snapshot).',steps: [{ label: 'native health', url: `${NATIVE}/v1/health`, expect: { body: /"status"/ } },+ { label: 'readiness probe', url: `${NATIVE}/v1/health/ready`, expect: { status: 200 } },{ label: 'prometheus scrape', url: `${NATIVE}/v1/metrics`, expect: { body: /xerj_/ } },- { label: 'DOC GAP: /v1/health/ready', url: `${NATIVE}/v1/health/ready`, expect: { status: 200 } },- { label: 'DOC GAP: /v1/cluster/health', url: `${NATIVE}/v1/cluster/health`, expect: { status: 200 } },- { label: 'DOC GAP: /v1/admin/flush', method: 'POST', url: `${NATIVE}/v1/admin/flush`, expect: { status: 200 } },- { label: 'DOC GAP: /v1/admin/backup', method: 'POST', url: `${NATIVE}/v1/admin/backup`, json: {}, expect: { status: 200 } },+ { label: 'cluster health', url: `${NATIVE}/v1/cluster/health`, expect: { body: /"status"/ } },+ { label: 'cluster-wide flush', method: 'POST', url: `${NATIVE}/v1/admin/flush`, expect: { body: /"flushed"/ } },+ { label: 'backup (snapshot to disk)', method: 'POST', url: `${NATIVE}/v1/admin/backup`, json: {}, expect: { body: /"backup"/ } },] },{ id: '12-console-ux', doc: 'Xerj Console (xerj-ux)', title: 'Embedded Console UX',diff --git a/engine/crates/xerj-api/src/native.rs b/engine/crates/xerj-api/src/native.rsindex 11c758232..918b4315d 100644--- a/engine/crates/xerj-api/src/native.rs+++ b/engine/crates/xerj-api/src/native.rs@@ -543,6 +543,131 @@ pub async fn readiness(State(state): State<AppState>) -> impl IntoResponse {}}+// ─────────────────────────────────────────────────────────────────────────────+// Handler: GET /v1/cluster/health — native cluster health summary+//+// Mirrors the data the ES-compat `_cluster/health` exposes, in the native+// `{ data, took_ms, request_id }` envelope. Single-node by design (Xerj is one+// binary), so node counts are 1.+// ─────────────────────────────────────────────────────────────────────────────++pub async fn cluster_health(State(state): State<AppState>) -> impl IntoResponse {+ let started = Instant::now();+ let request_id = Uuid::new_v4().to_string();++ let h = state.engine.health().await;+ let took_ms = started.elapsed().as_millis() as u64;+ let resp = NativeResponse::new(+ serde_json::json!({+ "cluster_name": "xerj",+ "status": h.status,+ "number_of_nodes": 1,+ "number_of_data_nodes": 1,+ "index_count": h.index_count,+ "total_docs": h.total_docs,+ "version": h.version,+ }),+ took_ms,+ &request_id,+ );+ Json(resp).into_response()+}++// ─────────────────────────────────────────────────────────────────────────────+// Handler: POST /v1/admin/flush — flush every index's memtable to disk+//+// Cluster-wide counterpart of `POST /v1/indices/:name/_flush`. Walks every+// index, flushes its memtable to a durable segment, and reports per-index+// success so an operator can force a checkpoint before a backup or upgrade.+// ─────────────────────────────────────────────────────────────────────────────++pub async fn admin_flush(State(state): State<AppState>) -> impl IntoResponse {+ let started = Instant::now();+ let request_id = Uuid::new_v4().to_string();++ let indices = state.engine.list_indices().await;+ let mut flushed: Vec<String> = Vec::new();+ let mut failed: Vec<String> = Vec::new();+ for info in &indices {+ match state.engine.flush_index(&info.name).await {+ Ok(()) => flushed.push(info.name.clone()),+ Err(_) => failed.push(info.name.clone()),+ }+ }++ let took_ms = started.elapsed().as_millis() as u64;+ let resp = NativeResponse::new(+ serde_json::json!({+ "flushed": flushed.len(),+ "indices": flushed,+ "failed": failed,+ }),+ took_ms,+ &request_id,+ );+ Json(resp).into_response()+}++// ─────────────────────────────────────────────────────────────────────────────+// Handler: POST /v1/admin/backup — snapshot the whole cluster to disk+//+// Optional JSON body: { "repo_path"?: string, "name"?: string,+// "indices"?: [string] }. Defaults: repo_path = "<data_dir>/_backups",+// name = "backup-<uuid>", indices = all. Flushes each index then copies its+// WAL + segments + schema and writes a manifest (engine::create_snapshot).+// ─────────────────────────────────────────────────────────────────────────────++#[derive(Debug, Default, Deserialize)]+pub struct BackupRequest {+ #[serde(default)]+ pub repo_path: Option<String>,+ #[serde(default)]+ pub name: Option<String>,+ #[serde(default)]+ pub indices: Option<Vec<String>>,+}++pub async fn admin_backup(State(state): State<AppState>, body: Bytes) -> impl IntoResponse {+ let started = Instant::now();+ let request_id = Uuid::new_v4().to_string();++ // Body is optional and lenient — `{}` or empty both mean "defaults".+ let req: BackupRequest = if body.is_empty() {+ BackupRequest::default()+ } else {+ serde_json::from_slice(&body).unwrap_or_default()+ };++ let data_dir = state.engine.config().server.data_dir.clone();+ let repo_path = req+ .repo_path+ .unwrap_or_else(|| format!("{data_dir}/_backups"));+ let name = req+ .name+ .unwrap_or_else(|| format!("backup-{}", Uuid::new_v4()));++ match state.engine.create_snapshot(&repo_path, &name, req.indices).await {+ Ok(manifest) => {+ let took_ms = started.elapsed().as_millis() as u64;+ let resp = NativeResponse::new(+ serde_json::json!({+ "backup": name,+ "repo_path": repo_path,+ "manifest": manifest,+ }),+ took_ms,+ &request_id,+ );+ (StatusCode::CREATED, Json(resp)).into_response()+ }+ Err(e) => {+ let xerj_err: xerj_common::XerjError = e.into();+ native_error(xerj_err, Some(&request_id), started.elapsed().as_millis() as u64)+ .into_response()+ }+ }+}+// ─────────────────────────────────────────────────────────────────────────────// Admin: slow query log — v0.8 8-P6//diff --git a/engine/crates/xerj-api/src/router.rs b/engine/crates/xerj-api/src/router.rsindex 8ac82b618..d9bc556c9 100644--- a/engine/crates/xerj-api/src/router.rs+++ b/engine/crates/xerj-api/src/router.rs@@ -45,6 +45,10 @@ use crate::{auth::auth_middleware, es_compat, native, state::AppState};/// POST /v1/indices/:name/search search/// POST /v1/indices/:name/_flush flush_index/// GET /v1/health health+/// GET /v1/health/ready readiness probe (200 unless red)+/// GET /v1/cluster/health cluster_health+/// POST /v1/admin/flush admin_flush (flush all indices)+/// POST /v1/admin/backup admin_backup (snapshot to disk)/// GET /v1/metrics metrics (Prometheus text)/// GET /v1/schema/:name get_schema/// POST /v1/schema/:name/evolve evolve_schema@@ -92,10 +96,15 @@ pub fn build_native_router(state: AppState) -> Router {.route("/v1/indices/:name/_flush", post(native::flush_index))// Cluster / observability.route("/v1/health", get(native::health))+ .route("/v1/health/ready", get(native::readiness))+ .route("/v1/cluster/health", get(native::cluster_health))// k8s probes — v0.8 8-P4 — see comment in `native.rs::liveness`..route("/health/live", get(native::liveness)).route("/health/ready", get(native::readiness)).route("/v1/metrics", get(native::metrics))+ // Admin: cluster-wide flush + backup (snapshot to disk)+ .route("/v1/admin/flush", post(native::admin_flush))+ .route("/v1/admin/backup", post(native::admin_backup))// Admin: slow query log — v0.8 8-P6.route("/v1/admin/slow_queries", get(native::admin_slow_queries).delete(native::admin_slow_queries_clear)).route("/v1/admin/slow_queries/threshold/:ms", put(native::admin_slow_queries_set_threshold))