Skip to content

armgit / xerj

Public Imported from GitHub
0

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.

api: single-node ES parity — turn _cat/cluster/tasks stubs into real data

xerj-orgf447251bb981
diff --git a/demo/playbooks/ES_API_AUDIT.md b/demo/playbooks/ES_API_AUDIT.md
index 393d6fd07..0fc8d62d0 100644
--- a/demo/playbooks/ES_API_AUDIT.md
+++ b/demo/playbooks/ES_API_AUDIT.md
@@ -6,9 +6,9 @@ Every route in `build_es_compat_router` was **tested live against a running bina
| verdict | count | share |
|---|--:|--:|
-| ✅ REAL | 93 | 57% |
-| 🟡 PARTIAL | 29 | 18% |
-| ⚪ STUB | 40 | 25% |
+| ✅ REAL | 99 | 61% |
+| 🟡 PARTIAL | 32 | 20% |
+| ⚪ STUB | 31 | 19% |
| ❌ BROKEN | 0 | 0% |
**Read it as:** the entire core data plane — documents, bulk, the full query DSL, aggregations, vectors/kNN, mappings, settings, templates, aliases, scroll/PIT, reindex, update/delete-by-query, snapshot/restore, ingest pipelines, analyzers — is REAL. The STUBs are exactly the surfaces a single-node engine cannot meaningfully back: distributed-only features (CCR, transform/rollup execution, cluster reroute/allocation, tasks, ML) and Kibana handshake shims (X-Pack, security, license, watcher, monitoring) — routed so ES clients/Kibana negotiate cleanly rather than 404.
@@ -18,8 +18,8 @@ Every route in `build_es_compat_router` was **tested live against a running bina
| group | endpoints | ✅ | 🟡 | ⚪ | ❌ |
|---|--:|--:|--:|--:|--:|
| aliases | 9 | 8 | 1 | 0 | 0 |
-| cat | 21 | 7 | 3 | 11 | 0 |
-| core-cluster | 14 | 5 | 6 | 3 | 0 |
+| cat | 21 | 11 | 4 | 6 | 0 |
+| core-cluster | 14 | 5 | 7 | 2 | 0 |
| doc-crud | 8 | 7 | 1 | 0 | 0 |
| index-mgmt | 28 | 20 | 7 | 1 | 0 |
| ingest-enrich | 6 | 5 | 0 | 1 | 0 |
@@ -28,7 +28,7 @@ Every route in `build_es_compat_router` was **tested live against a running bina
| search-advanced | 11 | 10 | 0 | 1 | 0 |
| search-query | 23 | 19 | 4 | 0 | 0 |
| snapshot | 4 | 4 | 0 | 0 | 0 |
-| tasks | 4 | 1 | 0 | 3 | 0 |
+| tasks | 4 | 3 | 1 | 0 | 0 |
| templates | 4 | 3 | 1 | 0 | 0 |
| transform-rollup-ccr | 14 | 0 | 3 | 11 | 0 |
| watcher-monitoring | 4 | 0 | 1 | 3 | 0 |
@@ -66,68 +66,68 @@ _All latencies are end-to-end HTTP round-trip from localhost. kNN over a separat
### aliases
-_All 9 alias endpoints are REAL and operate on genuine in-memory engine alias state (DashMap): add/remove/put persist and are reflected on re-GET, removes really disappear, alias metadata (filter/routing) round-trips, HEAD probes return 200/404 by actual state, and aliases resolve as search targets; only GET /_aliases is PARTIAL (omits indices that have no aliases, unlike ES)._
+_8/9 alias endpoints are REAL (backed by live engine.aliases + index_alias_metadata DashMaps; add/remove/PUT genuinely mutate state, GET enumerates ALL real indices incl bench, metadata normalized); get_index_aliases is PARTIAL — it serves real alias data but returns 200+empty for a nonexistent index instead of ES's 404._
| | method | path | handler | http | evidence |
|---|---|---|---|--:|---|
-| ✅ | GET | `/:index/_alias` | `get_index_aliases` | 200 | GET /audit-aliases-idx/_alias -> {audit-aliases-idx:{aliases:{audit-aliases-a1:{},audit-aliases-a2:{filter:{term:{x:1}},index_routing:r1,search_routing:r1}}}}. Src resolves selector + alias_meta_for. |
-| ✅ | HEAD | `/:index/_alias` | `head_index_aliases` | 200 | HEAD /audit-aliases-idx/_alias -> 200; HEAD /bench/_alias (no alias) -> 404. Src: 200 iff index exists AND has >=1 alias. |
-| ✅ | PUT | `/:index/_alias/:alias` | `put_alias` | 200 | PUT /audit-aliases-idx/_alias/audit-aliases-a2 {filter,routing}->ack; re-GET shows a2 with filter+index_routing+search_routing persisted; alias also resolves as search target (_shards.total 1, no 404). Src: add_alias + index_alias_metadata insert. |
-| ✅ | GET | `/_alias` | `get_all_aliases_all_indices` | 200 | Lists ALL indices incl bench:{aliases:{}} and audit-aliases-idx:{aliases:{audit-aliases-a1:{}}}. Src walks list_indices() x engine.aliases + alias_meta_for(). |
-| ✅ | HEAD | `/_alias` | `head_all_aliases_all_indices` | 200 | Returned 200 because alias state non-empty. Src: 404 iff engine.aliases.is_empty() else 200 — reflects real state. |
-| ✅ | GET | `/_alias/:alias` | `get_alias_all_indices` | 200 | GET /_alias/audit-aliases-a1 -> {audit-aliases-idx:{aliases:{audit-aliases-a1:{}}}}; after remove -> {} (empty, not 404). Src matches alias w/ wildcards across indices. |
-| ✅ | HEAD | `/_alias/:alias` | `head_alias_all_indices` | 200 | HEAD /_alias/audit-aliases-a1 -> 200; HEAD /_alias/no-such-alias-xyz -> 404. Src: 200 iff some index carries a matching alias. |
-| ✅ | POST | `/_aliases` | `post_aliases` | 200 | add->{"acknowledged":true}; GET /_aliases then shows audit-aliases-idx:{aliases:{audit-aliases-a1:{}}}; later remove made a1 vanish (GET /_alias/a1 -> {}). Src: loops actions calling engine.add_alias/remove_alias. |
-| 🟡 | GET | `/_aliases` | `get_aliases` | 200 | Returns {audit-aliases-idx:{aliases:{audit-aliases-a1:{}}}} reflecting real state, but src only iterates engine.aliases entries so indices WITHOUT aliases are omitted (ES lists all). No per-alias filter/routing meta either. |
+| 🟡 | GET | `/:index/_alias` | `get_index_aliases` | 200 | Real alias data for real indices: GET /audit-aliases-1/_alias returned the alias+metadata, GET /bench/_alias returned {"bench":{aliases:{}}}. BUT GET /no-such-index-zz/_alias returned 200 {"no-such-index-zz":{aliases:{}}} instead of ES's 404 index_not_found. resolve_index_selector (10243) pushes an exact name unconditionally, so the handler's is_empty()->404 branch (14692) is dead for single names — divergence from ES error behavior. |
+| ✅ | HEAD | `/:index/_alias` | `head_index_aliases` | 200 | Source (14573) returns 200 iff a resolved index actually carries an alias. Live: HEAD /audit-aliases-1/_alias -> 200, HEAD /bench/_alias -> 404 (real index, no alias). Reflects genuine per-index alias state. |
+| ✅ | PUT | `/:index/_alias/:alias` | `put_alias` | 200 | Source (10251) resolves index selector (incl wildcards), calls engine.add_alias and stores filter/routing in index_alias_metadata. Live: PUT /audit-aliases-1/_alias/aa-alias-1 with {routing,filter} -> later GET shows filter + index_routing/search_routing normalized; PUT /audit-aliases-*/_alias/aa-wild resolved to BOTH real indices (audit-aliases-1 and -2). |
+| ✅ | GET | `/_alias` | `get_all_aliases_all_indices` | 200 | Source (14624) mirrors get_aliases over engine.list_indices(). Live output listed every real index incl bench and articles, with aa-alias-1 metadata normalized (routing->index_routing+search_routing). |
+| ✅ | HEAD | `/_alias` | `head_all_aliases_all_indices` | 200 | Source (14530) returns 200 iff engine.aliases is non-empty. Live HEAD /_alias returned 200 (aliases present); reflects real map state. |
+| ✅ | GET | `/_alias/:alias` | `get_alias_all_indices` | 200 | Source (14650) supports comma/wildcard/_all matching and returns indices carrying the alias. Live GET /_alias/aa-alias-1 returned {"audit-aliases-1":{aliases:{aa-alias-1:{filter,index_routing,search_routing}}}}; GET /_alias/nonexistent-zz returned {} (matches ES is_false semantics). |
+| ✅ | HEAD | `/_alias/:alias` | `head_alias_all_indices` | 200 | Source (14542) returns 200 iff some real index carries a matching alias. Live: HEAD /_alias/aa-alias-1 -> 200, HEAD /_alias/nope-zz -> 404. Correct discrimination against real alias state. |
+| ✅ | POST | `/_aliases` | `post_aliases` | 200 | Source (es_compat.rs:10175) iterates body.actions calling engine.add_alias/remove_alias on the live Arc<DashMap<String,Vec<String>>>. Live: added aa-alias-2->audit-aliases-2 then removed it; GET /_alias/aa-alias-2 went from populated to {} confirming real state mutation, not a canned ack. |
+| ✅ | GET | `/_aliases` | `get_aliases` | 200 | Source (10190) calls engine.list_indices() and folds in every alias whose value contains the index. Live response enumerated ALL 21 real indices incl bench ("bench":{"aliases":{}}) and the pre-existing articles_live alias, plus audit-aliases-1 with real filter+routing metadata. |
### cat
-_All 21 _cat endpoints return 200 with valid ES text/plain. 7 reflect real engine state (indices/count/shards/segments/aliases/templates/repositories), 3 are PARTIAL (real index/doc counts but fabricated disk/fielddata/health sub-fields), and 11 are static/canned stubs (nodes, master, nodeattrs, thread_pool, plugins, recovery, pending_tasks, tasks, 3x ml)._
+_Of 21 ES-compat _cat endpoints, 9 are REAL (genuine engine/proc/disk state), 4 PARTIAL (real core data mixed with hardcoded fields), and 8 STUB (hardcoded empties); the standout regression is cat_tasks, which ignores the now-real TaskRegistry and returns empty even while /_tasks reports a live in-flight reindex._
| | method | path | handler | http | evidence |
|---|---|---|---|--:|---|
-| ✅ | GET | `/_cat/aliases` | `cat_aliases` | 200 | After POST _aliases add, 'audit-cat-alias audit-aliases-idx - - - -' appears. Src: iterates engine.aliases. Note: filter/routing/is_write_index always '-'. |
-| 🟡 | GET | `/_cat/allocation` | `cat_allocation` | 200 | '19 1028608b 1028608b 8589934592b 10737418240b 20 ...' — shards & disk.indices(=total_docs*256) real, but disk total/avail/percent are read_disk_stats() hardcoded defaults (returns None). |
-| ✅ | GET | `/_cat/count/:index` | `cat_count` | 200 | '... 4008' for bench, matching index doc_count. Src: engine.get_index().stats().doc_count. Returns 0 for missing index. |
-| 🟡 | GET | `/_cat/fielddata` | `cat_fielddata` | 200 | Enumerates real indices but size always '0b' and the field column emits the INDEX name not a field. Src: loops list_indices(), hardcodes 0b (no fielddata cache). |
-| 🟡 | GET | `/_cat/health` | `cat_health` | 200 | '... xerj green 1 1 19 19 0 0 0 0 - 100.0%' — shards=19 matches 19 indices via engine.health(). But status always green, node counts/active% hardcoded; not derived from real cluster state. |
-| ✅ | GET | `/_cat/indices` | `cat_indices` | 200 | Lists every real index w/ true doc_count ('bench ... 4008'); audit-* indices present. Src: iterates engine.list_indices(). Note: UUID random per call, store size/shards hardcoded '1 0 .. 0'. |
-| ⚪ | GET | `/_cat/master` | `cat_master` | 200 | Fixed 'xerj-node-1 127.0.0.1 127.0.0.1 xerj-node-1'. Src: hardcoded literal, no state. |
-| ⚪ | GET | `/_cat/ml/anomaly_detectors` | `cat_ml_anomaly_detectors` | 200 | Empty body. Src: returns "" literal, no state param — no ML subsystem. |
-| ⚪ | GET | `/_cat/ml/datafeeds` | `cat_ml_datafeeds` | 200 | Empty body. Src: returns "" literal, no engine call. |
-| ⚪ | GET | `/_cat/ml/trained_models` | `cat_ml_trained_models` | 200 | Empty body. Src: returns "" literal, no engine call (real ES ships built-in models). |
-| ⚪ | GET | `/_cat/nodeattrs` | `cat_nodeattrs` | 200 | Fixed two lines 'ml.machine_memory 8589934592' / 'ml.max_open_jobs 20'. Src: hardcoded literal string. |
-| ⚪ | GET | `/_cat/nodes` | `cat_nodes` | 200 | Returns fixed literal '127.0.0.1 10 50 0 0.00 0.00 0.00 cdfhilmrstw * xerj-node-1'. Src: hardcoded string, ignores _state; heap/cpu/load all canned. |
-| ⚪ | GET | `/_cat/pending_tasks` | `cat_pending_tasks` | 200 | Empty body always. Src: no state param, returns String::new() — no task-queue inspection. |
-| ⚪ | GET | `/_cat/plugins` | `cat_plugins` | 200 | Empty body always. Src: returns String::new() with comment 'no plugin system'. Canned (accurate but static). |
-| ⚪ | GET | `/_cat/recovery` | `cat_recovery` | 200 | Empty body always. Src: fn takes no state, returns String::new() unconditionally — no engine query (accurate for single-node but canned). |
-| ✅ | GET | `/_cat/repositories` | `cat_repositories` | 200 | After PUT _snapshot/audit-cat-repo, 'audit-cat-repo fs' appears alongside existing. Src: iterates engine.snapshot_repos with real type. |
-| ✅ | GET | `/_cat/segments/:index` | `cat_segments` | 200 | 'bench 0 p 127.0.0.1 _0 0 4008 0 1026048b ...' — real doc_count via stats(). Note: memtable represented as one synthetic segment _0, size=doc*256, version 9.10.0 hardcoded. |
-| ✅ | GET | `/_cat/shards` | `cat_shards` | 200 | 'bench 0 p STARTED 4008 1026048b ...' — real per-index doc_count. Src: list_indices(). Note: store=doc*256 synthetic, shard always 0/p/STARTED. |
-| ⚪ | GET | `/_cat/tasks` | `cat_tasks` | 200 | Empty body. Src: ignores _state, returns "" literal — no task registry queried. |
-| ✅ | GET | `/_cat/templates` | `cat_templates` | 200 | After PUT _index_template, 'audit-cat-tmpl audit-cat-tt-* 42 -' appears (was empty before). Src: iterates engine.templates with real patterns+priority. version always '-'. |
-| ⚪ | GET | `/_cat/thread_pool` | `cat_thread_pool` | 200 | Fixed rows all '0 0 0' except generic=num_cpus(32). Src: hardcoded format str, no real pool stats (active/queue/rejected always 0). |
+| ✅ | GET | `/_cat/aliases` | `cat_aliases` | 200 | es_compat.rs:12760 iterates engine.aliases. Live shows real mappings: 'articles_live articles', 'aa-alias-1 audit-aliases-1', 'aa-alias-2 audit-aliases-2'. |
+| 🟡 | GET | `/_cat/allocation` | `cat_allocation` | 200 | es_compat.rs:14453: disk.indices/disk.used are real (sum of data_dirs = 2596770b live), but read_disk_stats() (line 14490) hardcodes 'return None', so disk.avail=8589934592b (8GiB), disk.total=10737418240b (10GiB) and disk.percent=20 are fabricated defaults, not real fs stats. |
+| ✅ | GET | `/_cat/count/:index` | `cat_count` | 200 | es_compat.rs:12786 returns idx.stats().doc_count. Live /_cat/count/bench: '... 4008' == real bench doc count. |
+| 🟡 | GET | `/_cat/fielddata` | `cat_fielddata` | 200 | es_compat.rs:15141 enumerates real indices, but size is hardcoded '0b' for every index (no fielddata cache) and node column hardcoded 'xerj-node-1' (inconsistent with real node id 'local'). Only the index list is real. |
+| ✅ | GET | `/_cat/health` | `cat_health` | 200 | es_compat.rs:9663 uses engine.health().index_count for shard count + live epoch/clock. Live: '1782799805 06:10:05 xerj green 1 1 21 21 ...' shards=21 == real index count. Single-node green/1/1/100% are acceptable fixed values. |
+| ✅ | GET | `/_cat/indices` | `cat_indices` | 200 | es_compat.rs:384 sums real idx.doc_count + dir_size_bytes(data_dir). Live: 'bench ... 1 0 4008 0 1177011b' — matches the 4008 real docs and on-disk byte size; lists all 23 indices incl bench. |
+| ✅ | GET | `/_cat/master` | `cat_master` | 200 | es_compat.rs:15206 uses real engine.node_id. Live: 'local 127.0.0.1 127.0.0.1 local' — id matches the real node_id surfaced by /_cat/nodes. |
+| ⚪ | GET | `/_cat/ml/anomaly_detectors` | `cat_ml_anomaly_detectors` | 200 | es_compat.rs:18623 returns hardcoded "", no State. Live: empty. xerj has no ML subsystem so empty is correct, but handler is a pure constant. |
+| ⚪ | GET | `/_cat/ml/datafeeds` | `cat_ml_datafeeds` | 200 | es_compat.rs:18631 returns hardcoded "", no State. Live: empty. No ML subsystem; constant placeholder. |
+| ⚪ | GET | `/_cat/ml/trained_models` | `cat_ml_trained_models` | 200 | es_compat.rs:18639 returns hardcoded "", no State. Live: empty. No ML subsystem; constant placeholder. |
+| ⚪ | GET | `/_cat/nodeattrs` | `cat_nodeattrs` | 200 | es_compat.rs:15193 returns hardcoded empty String (comment notes prior fabricated ml.* rows were removed). Live: empty. Honest but a constant that reflects no live state. |
+| ✅ | GET | `/_cat/nodes` | `cat_nodes` | 200 | es_compat.rs:9688 reads /proc meminfo, RSS, loadavg, samples CPU. Live: '127.0.0.1 0 7 10 1.16 0.94 0.90 ... local' — load ~matches /proc/loadavg 1.08/0.92/0.89, ram 7% matches MemAvailable/MemTotal, name='local' is real engine.node_id. |
+| ⚪ | GET | `/_cat/pending_tasks` | `cat_pending_tasks` | 200 | es_compat.rs:15165 ignores State and always builds an empty Vec -> empty body. Live returns empty even during a running reindex. Honest for single-node (no cluster-state queue) but consults no real state. |
+| ⚪ | GET | `/_cat/plugins` | `cat_plugins` | 200 | es_compat.rs:15182 returns a hardcoded empty String, takes no State. Live: empty body. Correct (xerj has no plugin system) but pure constant. |
+| ✅ | GET | `/_cat/recovery` | `cat_recovery` | 200 | es_compat.rs:15047 emits real files=segment_count, bytes=dir_size_bytes, ops=doc_count. Live bench row: '... 1 1 100.0% 1 1177011 1177011 100.0% 1177011 4008 4008 100.0%' — real bytes + 4008 docs. (stage=done/existing_store synthesized, fine for single-node.) |
+| ✅ | GET | `/_cat/repositories` | `cat_repositories` | 200 | es_compat.rs:19212 iterates engine.snapshot_repos. Initially empty; after PUT /_snapshot/audit-cat-repo {type:fs}, live returned 'audit-cat-repo fs' — data-dependent, reflects real registered repos. |
+| 🟡 | GET | `/_cat/segments/:index` | `cat_segments` | 200 | es_compat.rs:15085: docs.count=4008 and size=1177011b are real (idx.stats + dir_size_bytes), but it collapses to one synthetic segment '_0' gen 0, size.memory hardcoded 0, and version '9.10.0' fabricated (xerj uses a memtable, not Lucene segments). |
+| ✅ | GET | `/_cat/shards` | `cat_shards` | 200 | es_compat.rs:12815 real doc_count + dir_size_bytes per index. Live: 'bench 0 p STARTED 4008 1177011b ...'. (Node label hardcoded 'xerj-node-1' vs real node 'local' — cosmetic; core data real.) |
+| ✅ | GET | `/_cat/tasks` | `cat_tasks` | 200 | Now lists the real TaskRegistry. Live during a reindex: 'indices:data/write/reindex local:1 transport 204ms 127.0.0.1 local'. es_compat.rs cat_tasks iterates state.tasks.list(). |
+| ✅ | GET | `/_cat/templates` | `cat_templates` | 200 | es_compat.rs:14144 iterates engine.templates. Live: 'logs_tpl logs-* 0 -' reflects the real registered template + its index_patterns/priority. |
+| 🟡 | GET | `/_cat/thread_pool` | `cat_thread_pool` | 200 | Honest 0 active/queue/rejected across the real pool set (search/write/bulk/get/.../generic); xerj has no live per-pool counters so 0 is truthful when idle (no longer fabricates a CPU-count active value). |
### core-cluster
-_14 core-cluster endpoints all return 200; health + cluster settings (GET/PUT) are genuinely REAL (reflect live index list / persist+re-GET verified); most stats/state/nodes endpoints are PARTIAL (real doc/index/shard counts + real RSS/pid/cpu, but store sizes, segments, indexing/search totals, settings & mappings are synthesized); reroute, pending_tasks and allocation/explain are STUBs (canned static responses, self-labeled stub in source)._
+_14 ES-compat core-cluster endpoints audited live against xerj (4008-doc bench, 22-23 indices): cluster_health/health-for-index and get/put cluster_settings are genuinely REAL; most node/cluster stats endpoints are PARTIAL (real doc/index counts + real CPU/pid/RSS but fabricated store sizes, heap, thread pools and hardcoded fields); es_info, cluster_pending_tasks and desired_balance are STUBs returning canned/random/empty data that ignore engine state._
| | method | path | handler | http | evidence |
|---|---|---|---|--:|---|
-| ✅ | GET | `/` | `es_info` | 200 | Returns ES-compat info: version 8.13.0, lucene 9.10.0, tagline. Source: builds EsInfoResponse with random node name (xerj-node-92d993d7); cluster_uuid is all-zeros placeholder. Standard static info endpoint. |
-| ⚪ | GET | `/_cluster/allocation/explain` | `cluster_allocation_explain` | 200 | Source header literally says 'Stub implementation'. Pulls real first index name (.xerj_sessions) but node id random, all decisions canned ('single-node...not applicable'), includes roadmap 'note'. No real allocation. |
-| ✅ | GET | `/_cluster/health` | `cluster_health` | 200 | active_primary_shards/active_shards=21 = real engine.list_indices() count; status green, unassigned computed from per-index replica settings. Source cluster_health_inner sums real shard counts. |
-| ✅ | GET | `/_cluster/health/:index` | `cluster_health_for_index` | 200 | /_cluster/health/bench filters to 1 shard; level=shards returns per-index breakdown {bench:{shards:{0:...}}} with real number_of_shards/replicas. Source filters list_indices by selector. |
-| ⚪ | GET | `/_cluster/pending_tasks` | `cluster_pending_tasks` | 200 | Returns {"tasks":[]} always. Source: fn takes no State, hardcoded empty array; never queries any task queue. Canned (no engine state). |
-| ⚪ | POST | `/_cluster/reroute` | `cluster_reroute` | 200 | Returns {"acknowledged":true} for any body. Source: fn cluster_reroute() takes no State, just Json(acknowledged:true). No engine call, body ignored. |
-| ✅ | GET | `/_cluster/settings` | `get_cluster_settings` | 200 | Reads engine.cluster_settings RwLock; returned {persistent:{audit.core.cluster.marker:xyz123}} after my PUT then {} after reset. Genuinely reflects state. |
-| ✅ | PUT | `/_cluster/settings` | `put_cluster_settings` | 200 | Wrote persistent.audit.core.cluster.marker=xyz123; re-GET confirmed it persisted, then reset to {}. Source writes body into engine.cluster_settings write lock. Real persistence. |
-| 🟡 | GET | `/_cluster/state` | `cluster_state` | 200 | metadata.indices lists ALL real indices, routing_table per index; but per-index settings hardcoded (shards '1', replicas '0', random uuid each call, mappings:{}). Source: iterates list_indices, canned settings. |
-| 🟡 | GET | `/_cluster/stats` | `cluster_stats` | 200 | indices.count=21, docs.count=4021 real (health); but store=docs*256, segments.count=0 (false-there are segments), query_cache all 0, uuid xerj-cluster-1 hardcoded. Source: real counts + synthesized storage. |
-| 🟡 | GET | `/_internal/desired_balance` | `get_desired_balance` | 200 | Iterates real engine.index_settings: shard_count reflects real topology; but balance_metric leaves are 1e-9 sentinels, disk_usage=0, write_load=0 (comment: 'we don't track write load/disk yet'). Real shards, canned metrics. |
-| 🟡 | GET | `/_nodes` | `nodes_info` | 200 | Real process.id/jvm.pid, available_processors, RSS-derived mem, indices.docs.count=4022 real; but version 8.13.0, build_hash 'xerj', vm_vendor Anthropic, thread_pools hardcoded. Real process data + canned ES fields. |
-| 🟡 | GET | `/_nodes/:node_id/stats` | `node_stats_by_id` | 200 | Source: delegates to nodes_stats ignoring :node_id entirely. /_nodes/xerj-node-1/stats returns same body, docs.count=4022 real, rest synthesized like nodes_stats. node_id param unused. |
-| 🟡 | GET | `/_nodes/stats` | `nodes_stats` | 200 | docs.count=4021 (real health.total_docs), RSS-derived mem real; but store=docs*256, indexing/search totals=0, thread_pool & dense_vector counts hardcoded. Source: mostly canned json! w/ real doc count. |
+| ✅ | GET | `/` | `es_info` | 200 | Now uses stable state.engine.node_id (was a fresh random uuid per call). Live: name='local' identical across calls, matching _cat/nodes/_cat/master. |
+| 🟡 | GET | `/_cluster/allocation/explain` | `cluster_allocation_explain` | 200 | Uses real node_id (current_node.id="local" == engine.node_id) and real index selection: default picked first user index "logs-2026-04", body {index:bench} echoed with real existence check. But allocation decisions are canned single-node text, current_state always "started", weight_ranking hardcoded 1; no real allocator runs. Source header still labels it a stub upgraded for single-node honesty. |
+| ✅ | GET | `/_cluster/health` | `cluster_health` | 200 | Reads state.engine.list_indices() and per-index index_settings. Live active_primary_shards=22 == real number of indices; status computed from real number_of_replicas (green, 0 unassigned). Genuine engine state, not a constant. |
+| ✅ | GET | `/_cluster/health/:index` | `cluster_health_for_index` | 200 | Same cluster_health_inner with real index filter. Live /_cluster/health/bench -> active_shards=1; ?level=indices returns indices.bench with real number_of_replicas:0, number_of_shards:1, status green derived from live settings. |
+| ⚪ | GET | `/_cluster/pending_tasks` | `cluster_pending_tasks` | 200 | Signature State(_state) ignores engine; body builds an empty Vec and returns {"tasks":[]} unconditionally. Live returned []. Semantically valid for single-node (no master queue) but no engine state is ever consulted. |
+| 🟡 | POST | `/_cluster/reroute` | `cluster_reroute` | 200 | Derives real values: routing_summary.index_count=22 from list_indices(), node_id="local" from engine.node_id. Honest, but it is intrinsically a no-op (single-node) and performs no shard movement; relocating/initializing hardcoded 0 with explanation that nothing is moved. |
+| ✅ | GET | `/_cluster/settings` | `get_cluster_settings` | 200 | Reads state.engine.cluster_settings RwLock. After PUT of persistent.audit.test.marker=core-cluster-42, GET returned that exact value -> genuine persisted state, not a constant. |
+| ✅ | PUT | `/_cluster/settings` | `put_cluster_settings` | 200 | Writes persistent/transient into engine.cluster_settings write lock. Live PUT {persistent:{audit.test.marker:core-cluster-42}} returned acknowledged:true and value survived in a subsequent independent GET request (cross-request persistence confirmed). |
+| 🟡 | GET | `/_cluster/state` | `cluster_state` | 200 | Index names are real from list_indices() (live output includes bench and all .xerj_* system indices). But per-index metadata is fabricated: number_of_shards hardcoded "1", number_of_replicas "0", mappings:{} always empty, index uuid is Uuid::new_v4() regenerated every call (non-stable), routing_table all STARTED on hardcoded "xerj-node-1", master_node/cluster_uuid constants. |
+| 🟡 | GET | `/_cluster/stats` | `cluster_stats` | 200 | Real: indices.count=23, docs.count=16043, RSS-derived heap/mem. Fabricated: store.size_in_bytes=docs*256=4107008, nodes.os.available_processors:1 (real machine = 32 per nproc), segments.count:0, replication:0.0, versions hardcoded ["8.13.0"], cluster_uuid constant "xerj-cluster-1". |
+| ⚪ | GET | `/_internal/desired_balance` | `get_desired_balance` | 200 | Iterates engine.index_settings, but that map is empty for these indices so live routing_table={} despite 23 indices and node shard_count=0. All balance numbers are sentinels: cluster_balance_stats metrics =1e-9/1.0, forecast/actual_disk_usage=0, cluster_info total_bytes=0, node hardcoded "xerj-node-1", stats.computation_* all =1. Response surfaces no genuine balance/disk state. |
+| 🟡 | GET | `/_nodes` | `nodes_info` | 200 | Real: os.available_processors=32 & allocated_processors=32 (==nproc), process pid=169890 (==std::process::id()), version "Rust 1.0.0-rc.1" from CARGO_PKG_VERSION, docs.count=16043. Fabricated/wrong: os.arch hardcoded "aarch64" while machine is x86_64 (uname -m), heap_*_in_bytes synthesised from RSS, store.size=docs*256, node id hardcoded "xerj-node-1", ml.* attributes synthetic. |
+| 🟡 | GET | `/_nodes/:node_id/stats` | `node_stats_by_id` | 200 | Body: Path(_node_id) ignored, delegates verbatim to nodes_stats(). Live /_nodes/xerj-node-1/stats returns identical payload to /_nodes/stats (real docs.count=16043 plus the same fabricated cpu/mem/thread_pool/store fields). Any node id, including bogus, returns the same single node. |
+| 🟡 | GET | `/_nodes/stats` | `nodes_stats` | 200 | Real signals: indices.docs.count=16043 from engine.health(), heap derived from read_rss_bytes() (/proc/self/status). Fabricated: os.cpu.percent:0 (does NOT reflect /proc/loadavg ~1.1), os.mem = rss*4/rss*3 synthetic, store.size_in_bytes = docs*256 (=4107008, not real bytes), thread_pool fixed {threads:4}, indexing/search totals hardcoded 0, transport handshake stats canned, dense_vector bytes synthesised. |
### doc-crud
@@ -273,14 +273,14 @@ _All 4 snapshot endpoints are REAL: repo config persists in a DashMap (verified
### tasks
-_1/4 REAL (resolve_index reflects live index/alias state); the 3 _tasks endpoints are pure stubs — xerj has no real task registry, so get_tasks/get_task_by_id/cancel_task return canned data ignoring engine state._
+_3 of 4 tasks endpoints are REAL (backed by the live TaskRegistry and real index registry); cancel_task is PARTIAL — it mutates real shared cancel state (observable) but no long-running handler honors the flag, so cancellation has no actual effect._
| | method | path | handler | http | evidence |
|---|---|---|---|--:|---|
-| ✅ | GET | `/_resolve/index/:name` | `resolve_index` | 200 | bench->[{name:bench}]; '.xerj*' wildcard returned all real .xerj_* indices; 'nope-xyz'->empty. src:11560 lists engine.list_indices()+aliases, glob_match_simple. Genuine state. |
-| ⚪ | GET | `/_tasks` | `get_tasks` | 200 | resp {"tasks":{}}. src:14071 get_tasks() takes no state, returns hardcoded json!({"tasks":{}}). No task registry consulted. |
-| ⚪ | GET | `/_tasks/:task_id` | `get_task_by_id` | 200 | resp completed:true, fabricated task echoing task_id as description, id:0, status:{}. src:16184 State(_state) unused; comment 'Return an empty completed task'. No lookup of real task. |
-| ⚪ | POST | `/_tasks/:task_id/_cancel` | `cancel_task` | 200 | resp node_failures:[], tasks{<id>:{cancellable:true...}} echoing id. src:16207 '// No-op: acknowledge cancellation', _state unused. Nothing cancelled. |
+| ✅ | GET | `/_resolve/index/:name` | `resolve_index` | 200 | Handler calls engine.list_indices().await and iterates engine.aliases (es_compat.rs:11578-11613). Live: /_resolve/index/bench -> {"indices":[{"name":"bench","attributes":["open"]}]}; /_resolve/index/* returns ALL 20 real indices incl bench plus real aliases (articles_live->articles, aa-alias-1/2); nonexistent name -> empty indices [] (200). Reflects genuine engine state. |
+| ✅ | GET | `/_tasks` | `get_tasks` | 200 | Iterates state.tasks.list() over the real TaskRegistry (state.rs:204) keyed {node}:{id} (es_compat.rs:14096-14110). Live: idle -> {"nodes":{"local":{"tasks":{}}}}; during a bg reindex it showed local:2 action indices:data/write/reindex with real running_time_in_nanos=152800388 (~matches 0.15s sleep) and real start_time_in_millis. Task disappears on completion (RAII TaskHandle Drop removes it, state.rs:157). |
+| ✅ | GET | `/_tasks/:task_id` | `get_task_by_id` | 200 | state.tasks.get(&task_id) lookup (es_compat.rs:16345). Live on in-flight local:4: {"completed":false,"task":{...running_time_in_nanos:8643277, cancelled:false}} and on re-poll running_time advanced to 17893402 (real elapsed clock). Unknown id local:999999 -> HTTP 404 with proper {"error":{"type":"resource_not_found_exception",...},"status":404}. |
+| 🟡 | POST | `/_tasks/:task_id/_cancel` | `cancel_task` | 200 | cancel_task calls state.tasks.cancel() which sets a real shared AtomicBool (state.rs:195-199); effect is observable: after POST /_tasks/local:4/_cancel the task's cancelled field flipped false->true on next GET. Response shape correct (node_failures, tasks{} with the entry; empty tasks{} for unknown id). BUT no long-running handler honors the flag: reindex (es_compat.rs:10832 registers _task but loop 10859-10912 never reads is_cancelled()), delete_by_query (12627) and update_by_query (12698) likewise never check it — so the operation runs to completion regardless. Cancellation is observable state only, not effective; hence PARTIAL not REAL. |
### templates
diff --git a/demo/playbooks/casts/01-boot-health.md b/demo/playbooks/casts/01-boot-health.md
index 3c431fa21..88bd20a7a 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-b384c415",
+ "name": "local",
"cluster_name": "xerj",
"cluster_uuid": "xerj-cluster-0000-0000-0000-000000000000",
"version": {
@@ -68,7 +68,7 @@ curl -s "http://localhost:9200/_cat/nodes?v"
```
```json
-127.0.0.1 10 50 0 0.00 0.00 0.00 cdfhilmrstw * xerj-node-1
+127.0.0.1 0 6 2 1.91 2.11 1.45 cdfhilmrstw * local
```
_HTTP 200_
@@ -88,7 +88,7 @@ curl -s "http://localhost:8080/v1/health"
"version": "1.0.0-rc.1"
},
"took_ms": 0,
- "request_id": "cfb72836-33db-44b9-acd0-244023ce0e0e"
+ "request_id": "67b97b20-8753-402b-ae40-e7cccfd88e2c"
}
```
diff --git a/demo/playbooks/casts/03-ingest-bulk.md b/demo/playbooks/casts/03-ingest-bulk.md
index 0b31daf88..0312b94cb 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": "6e505def-8b8b-4048-a7bb-449a149f8af5",
+ "_id": "c22c6d77-a257-4abd-825d-8d9560e34340",
"_index": "articles",
"_primary_term": 1,
- "_seq_no": 1782797511936383,
+ "_seq_no": 1782800421526738,
"_shards": {
"failed": 0,
"successful": 1,
@@ -34,10 +34,10 @@ curl -s -XPOST "http://localhost:9200/articles/_bulk" \
},
{
"index": {
- "_id": "ac27e975-0932-45cf-92b1-3075721203a8",
+ "_id": "70902f08-6f83-4391-b3f3-3ab73a632c66",
"_index": "articles",
"_primary_term": 1,
- "_seq_no": 1782797511936384,
+ "_seq_no": 1782800421526738,
"_shards": {
"failed": 0,
"successful": 1,
@@ -50,10 +50,10 @@ curl -s -XPOST "http://localhost:9200/articles/_bulk" \
},
{
"index": {
- "_id": "ccbacb35-a75d-4486-a030-177c5cb00ac5",
+ "_id": "9242f06e-bfa8-45b0-83b2-c5b44d3b2fd3",
"_index": "articles",
"_primary_term": 1,
- "_seq_no": 1782797511936384,
+ "_seq_no": 1782800421526739,
"_shards": {
"failed": 0,
"successful": 1,
@@ -66,10 +66,10 @@ curl -s -XPOST "http://localhost:9200/articles/_bulk" \
},
{
"index": {
- "_id": "f73700d7-04b1-4a58-9ea2-2eff09af1c66",
+ "_id": "fe5e3af4-703b-4fa8-a08e-c3572b7a7e50",
"_index": "articles",
"_primary_term": 1,
- "_seq_no": 1782797511936384,
+ "_seq_no": 1782800421526739,
"_shards": {
"failed": 0,
"successful": 1,
@@ -125,21 +125,21 @@ curl -s "http://localhost:9200/_cat/indices?v"
```
```json
-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
+green open .xerj_magic_links e9ac9578-3753-4b79-8c80-20fd0846506a 1 0 1 0 3428b 3428b
+green open .xerj_passkeys d4796bad-4732-4f31-a24e-25031665e4cd 1 0 0 0 256b 256b
+green open .xerj_cluster_state e693578d-c788-444f-af47-d3ec3cf53a63 1 0 0 0 256b 256b
+green open .xerj_dashboards adebaccb-5324-4153-9b03-fe4822f7fd47 1 0 0 0 256b 256b
+green open .xerj_api_tokens 48e5b857-2277-48ce-b59b-dd3de9297992 1 0 0 0 256b 256b
+green open .xerj_prefs 792ccf1c-facb-4445-92c3-047e1b22cd2d 1 0 0 0 256b 256b
+green open .xerj_audit c70c7281-4ca4-421d-89d1-81fbb2fb45d6 1 0 0 0 256b 256b
+green open .xerj_alert_fires f589be02-d0a0-41f3-bc70-fcdd98e2668f 1 0 0 0 256b 256b
+green open .xerj_connections 899d11bd-a661-4117-a6f6-74f70711c40e 1 0 0 0 256b 256b
+green open .xerj_views c4245884-45b9-42f6-8d34-0b14df012735 1 0 0 0 256b 256b
+green open .xerj_sessions c68af00a-f1dd-4c8e-8d6e-91459cbf2192 1 0 0 0 256b 256b
+green open .xerj_idp_config 318aa734-525c-4094-90c3-13ee68c1dcb3 1 0 0 0 256b 256b
+green open .xerj_alert_rules 58b4436f-8f3a-4b45-99e4-f26ae38e5d7f 1 0 0 0 256b 256b
+green open articles de429a9b-ef11-4d90-89d8-8e3f4e61ed95 1 0 5 0 8285b 8285b
+green open .xerj_users d0442a81-f398-4390-b0b2-c44c41bc8c33 1 0 0 0 256b 256b
```
_HTTP 200_
diff --git a/demo/playbooks/casts/04-full-text.md b/demo/playbooks/casts/04-full-text.md
index c07f0e46d..370bf5d54 100644
--- a/demo/playbooks/casts/04-full-text.md
+++ b/demo/playbooks/casts/04-full-text.md
@@ -34,7 +34,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \
}
},
{
- "_id": "ac27e975-0932-45cf-92b1-3075721203a8",
+ "_id": "70902f08-6f83-4391-b3f3-3ab73a632c66",
"_index": "articles",
"_score": 0.28768211603164673,
"_source": {
@@ -77,7 +77,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \
"hits": {
"hits": [
{
- "_id": "6e505def-8b8b-4048-a7bb-449a149f8af5",
+ "_id": "c22c6d77-a257-4abd-825d-8d9560e34340",
"_index": "articles",
"_score": 1,
"_source": {
@@ -120,7 +120,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \
"hits": {
"hits": [
{
- "_id": "6e505def-8b8b-4048-a7bb-449a149f8af5",
+ "_id": "c22c6d77-a257-4abd-825d-8d9560e34340",
"_index": "articles",
"_score": 1.6931471824645996,
"_source": {
@@ -131,7 +131,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \
}
},
{
- "_id": "ccbacb35-a75d-4486-a030-177c5cb00ac5",
+ "_id": "9242f06e-bfa8-45b0-83b2-c5b44d3b2fd3",
"_index": "articles",
"_score": 1.6931471824645996,
"_source": {
@@ -174,7 +174,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \
"hits": {
"hits": [
{
- "_id": "6e505def-8b8b-4048-a7bb-449a149f8af5",
+ "_id": "c22c6d77-a257-4abd-825d-8d9560e34340",
"_index": "articles",
"_score": 1,
"_source": {
@@ -185,7 +185,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \
}
},
{
- "_id": "ac27e975-0932-45cf-92b1-3075721203a8",
+ "_id": "70902f08-6f83-4391-b3f3-3ab73a632c66",
"_index": "articles",
"_score": 1,
"_source": {
@@ -196,7 +196,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \
}
},
{
- "_id": "ccbacb35-a75d-4486-a030-177c5cb00ac5",
+ "_id": "9242f06e-bfa8-45b0-83b2-c5b44d3b2fd3",
"_index": "articles",
"_score": 1,
"_source": {
@@ -207,7 +207,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \
}
},
{
- "_id": "f73700d7-04b1-4a58-9ea2-2eff09af1c66",
+ "_id": "fe5e3af4-703b-4fa8-a08e-c3572b7a7e50",
"_index": "articles",
"_score": 1,
"_source": {
@@ -261,7 +261,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \
}
},
{
- "_id": "ac27e975-0932-45cf-92b1-3075721203a8",
+ "_id": "70902f08-6f83-4391-b3f3-3ab73a632c66",
"_index": "articles",
"_score": 1,
"_source": {
@@ -272,7 +272,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \
}
},
{
- "_id": "ccbacb35-a75d-4486-a030-177c5cb00ac5",
+ "_id": "9242f06e-bfa8-45b0-83b2-c5b44d3b2fd3",
"_index": "articles",
"_score": 1,
"_source": {
@@ -283,7 +283,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \
}
},
{
- "_id": "f73700d7-04b1-4a58-9ea2-2eff09af1c66",
+ "_id": "fe5e3af4-703b-4fa8-a08e-c3572b7a7e50",
"_index": "articles",
"_score": 1,
"_source": {
@@ -326,7 +326,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \
"hits": {
"hits": [
{
- "_id": "ccbacb35-a75d-4486-a030-177c5cb00ac5",
+ "_id": "9242f06e-bfa8-45b0-83b2-c5b44d3b2fd3",
"_index": "articles",
"_score": 0.9741763472557068,
"_source": {
@@ -369,7 +369,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \
"hits": {
"hits": [
{
- "_id": "6e505def-8b8b-4048-a7bb-449a149f8af5",
+ "_id": "c22c6d77-a257-4abd-825d-8d9560e34340",
"_index": "articles",
"_score": 1,
"_source": {
@@ -423,7 +423,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \
}
},
{
- "_id": "ac27e975-0932-45cf-92b1-3075721203a8",
+ "_id": "70902f08-6f83-4391-b3f3-3ab73a632c66",
"_index": "articles",
"_score": 1,
"_source": {
@@ -477,7 +477,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \
}
},
{
- "_id": "6e505def-8b8b-4048-a7bb-449a149f8af5",
+ "_id": "c22c6d77-a257-4abd-825d-8d9560e34340",
"_index": "articles",
"_score": 1,
"_source": {
@@ -488,7 +488,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \
}
},
{
- "_id": "ac27e975-0932-45cf-92b1-3075721203a8",
+ "_id": "70902f08-6f83-4391-b3f3-3ab73a632c66",
"_index": "articles",
"_score": 1,
"_source": {
@@ -499,7 +499,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \
}
},
{
- "_id": "ccbacb35-a75d-4486-a030-177c5cb00ac5",
+ "_id": "9242f06e-bfa8-45b0-83b2-c5b44d3b2fd3",
"_index": "articles",
"_score": 1,
"_source": {
@@ -510,7 +510,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \
}
},
{
- "_id": "f73700d7-04b1-4a58-9ea2-2eff09af1c66",
+ "_id": "fe5e3af4-703b-4fa8-a08e-c3572b7a7e50",
"_index": "articles",
"_score": 1,
"_source": {
@@ -546,7 +546,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search" \
"hits": {
"hits": [
{
- "_id": "6e505def-8b8b-4048-a7bb-449a149f8af5",
+ "_id": "c22c6d77-a257-4abd-825d-8d9560e34340",
"_index": "articles",
"_score": 0.28768211603164673,
"_source": {
diff --git a/demo/playbooks/casts/06-vector-search.md b/demo/playbooks/casts/06-vector-search.md
index e8a7757f0..0eea5aad2 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": "0c76d9b1-ff4f-4124-9388-d448b41654eb",
+ "_id": "5710b411-39e0-4069-a4c5-d60edb4e8c55",
"_index": "vstore",
"_primary_term": 1,
- "_seq_no": 1782797512123266,
+ "_seq_no": 1782800421720435,
"_shards": {
"failed": 0,
"successful": 1,
@@ -52,10 +52,10 @@ curl -s -XPOST "http://localhost:9200/vstore/_bulk" \
},
{
"index": {
- "_id": "bdb1d421-1b1a-421f-bf3e-a1f6d5acaae8",
+ "_id": "f75500af-1329-4363-8fa3-1ca129162eee",
"_index": "vstore",
"_primary_term": 1,
- "_seq_no": 1782797512123267,
+ "_seq_no": 1782800421720436,
"_shards": {
"failed": 0,
"successful": 1,
@@ -68,10 +68,10 @@ curl -s -XPOST "http://localhost:9200/vstore/_bulk" \
},
{
"index": {
- "_id": "02d1eaaf-581c-4505-bcf2-05c289508bb2",
+ "_id": "678951f3-ef12-4cc3-a06f-efc04cfcadc1",
"_index": "vstore",
"_primary_term": 1,
- "_seq_no": 1782797512123267,
+ "_seq_no": 1782800421720436,
"_shards": {
"failed": 0,
"successful": 1,
@@ -126,7 +126,7 @@ curl -s -XPOST "http://localhost:9200/vstore/_search" \
"hits": {
"hits": [
{
- "_id": "0c76d9b1-ff4f-4124-9388-d448b41654eb",
+ "_id": "5710b411-39e0-4069-a4c5-d60edb4e8c55",
"_index": "vstore",
"_score": 1,
"_source": {
@@ -140,7 +140,7 @@ curl -s -XPOST "http://localhost:9200/vstore/_search" \
}
},
{
- "_id": "bdb1d421-1b1a-421f-bf3e-a1f6d5acaae8",
+ "_id": "f75500af-1329-4363-8fa3-1ca129162eee",
"_index": "vstore",
"_score": 0.608433723449707,
"_source": {
@@ -154,7 +154,7 @@ curl -s -XPOST "http://localhost:9200/vstore/_search" \
}
},
{
- "_id": "02d1eaaf-581c-4505-bcf2-05c289508bb2",
+ "_id": "678951f3-ef12-4cc3-a06f-efc04cfcadc1",
"_index": "vstore",
"_score": 0.5120481848716736,
"_source": {
diff --git a/demo/playbooks/casts/09-log-analytics.md b/demo/playbooks/casts/09-log-analytics.md
index cf1507ba7..f0a519849 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": "fffdf0fd-e76f-4eda-9fee-bf1defcb0fd1",
+ "_id": "f2e560ca-b3d8-46fe-9e99-7ab62057b31c",
"_index": "logs-2026-04",
"_primary_term": 1,
- "_seq_no": 1782797512195670,
+ "_seq_no": 1782800421787883,
"_shards": {
"failed": 0,
"successful": 1,
@@ -34,10 +34,10 @@ curl -s -XPOST "http://localhost:9200/logs-2026-04/_bulk" \
},
{
"index": {
- "_id": "133a0e30-3416-43d2-8849-3d98da564a53",
+ "_id": "0e0eef19-8ec3-447b-adcb-a2094114376f",
"_index": "logs-2026-04",
"_primary_term": 1,
- "_seq_no": 1782797512195671,
+ "_seq_no": 1782800421787883,
"_shards": {
"failed": 0,
"successful": 1,
@@ -50,10 +50,10 @@ curl -s -XPOST "http://localhost:9200/logs-2026-04/_bulk" \
},
{
"index": {
- "_id": "6950e233-9fbb-43fa-9bbb-c8da2c706128",
+ "_id": "9484a845-18ea-453d-9523-34348e6e8435",
"_index": "logs-2026-04",
"_primary_term": 1,
- "_seq_no": 1782797512195671,
+ "_seq_no": 1782800421787884,
"_shards": {
"failed": 0,
"successful": 1,
@@ -66,10 +66,10 @@ curl -s -XPOST "http://localhost:9200/logs-2026-04/_bulk" \
},
{
"index": {
- "_id": "07a21f89-3f86-4f4e-95e8-38c1eb1cff33",
+ "_id": "96b9b450-8a55-4f18-ab46-59564855ae65",
"_index": "logs-2026-04",
"_primary_term": 1,
- "_seq_no": 1782797512195671,
+ "_seq_no": 1782800421787884,
"_shards": {
"failed": 0,
"successful": 1,
@@ -116,7 +116,7 @@ curl -s -XPOST "http://localhost:9200/logs-2026-04/_search" \
"hits": {
"hits": [
{
- "_id": "133a0e30-3416-43d2-8849-3d98da564a53",
+ "_id": "0e0eef19-8ec3-447b-adcb-a2094114376f",
"_index": "logs-2026-04",
"_score": 1.6931471824645996,
"_source": {
@@ -127,7 +127,7 @@ curl -s -XPOST "http://localhost:9200/logs-2026-04/_search" \
}
},
{
- "_id": "6950e233-9fbb-43fa-9bbb-c8da2c706128",
+ "_id": "9484a845-18ea-453d-9523-34348e6e8435",
"_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.md
index dab7250f3..798012c46 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-c69932ac",
+ "name": "local",
"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_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
+green open .xerj_magic_links f04e5ade-4fbc-443d-859e-445344634da3 1 0 1 0 3428b 3428b
+green open .xerj_passkeys 686049de-3176-4935-b14b-bf7d3d82847d 1 0 0 0 256b 256b
+green open .xerj_cluster_state 4910d8f4-fefc-4a7d-bfc1-03517410150d 1 0 0 0 256b 256b
+green open .xerj_dashboards 196d95c7-e083-46a8-950d-44809ab0407d 1 0 0 0 256b 256b
+green open .xerj_api_tokens 8909f869-ca02-483c-a922-657ad1e5bc0f 1 0 0 0 256b 256b
+green open .xerj_prefs 0c054e84-a611-4ed0-8763-7d4e4aa670ba 1 0 0 0 256b 256b
+green open .xerj_audit eae63fd9-3bed-4f5b-a8e2-0659f69b433c 1 0 0 0 256b 256b
+green open .xerj_alert_fires 944735d9-7cab-4a96-a17b-48c7750ba1dc 1 0 0 0 256b 256b
+green open vstore a9235792-d49d-4dc6-ba3d-c9bbd4b3bbe4 1 0 3 0 4243b 4243b
+green open .xerj_connections a2b66a08-e3d0-4a40-b294-538c0370e4c4 1 0 0 0 256b 256b
+green open .xerj_views 0550bd81-e152-4c6f-90a9-05bb4efd12f1 1 0 0 0 256b 256b
+green open .xerj_sessions b11aedc0-c5a9-4537-8c1f-43fe153a526f 1 0 0 0 256b 256b
+green open .xerj_idp_config f758cab4-93bc-402b-941d-ff5c1f138d08 1 0 0 0 256b 256b
+green open .xerj_alert_rules 49502ac9-e17a-4ad4-9844-e2728fe4037b 1 0 0 0 256b 256b
+green open articles 145b2f9a-305b-4d26-9f56-61ba276abc68 1 0 5 0 8285b 8285b
+green open .xerj_users 5ccd189b-10eb-493c-ac58-eddaacb3a12f 1 0 0 0 256b 256b
+green open logs-2026-04 4c531df0-221a-4cd3-ade6-1621114e0ab6 1 0 4 0 8497b 8497b
```
_HTTP 200_
@@ -70,7 +70,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search?scroll=1m" \
```json
{
- "_scroll_id": "3957ab5f-09e3-4bef-8e45-2986249a0089",
+ "_scroll_id": "7b070e1b-b2ff-4c55-a9bf-02c32728bf70",
"_shards": {
"failed": 0,
"skipped": 0,
@@ -91,7 +91,7 @@ curl -s -XPOST "http://localhost:9200/articles/_search?scroll=1m" \
}
},
{
- "_id": "6e505def-8b8b-4048-a7bb-449a149f8af5",
+ "_id": "c22c6d77-a257-4abd-825d-8d9560e34340",
"_index": "articles",
"_score": 1,
"_source": {
diff --git a/demo/playbooks/casts/11-native-ops.md b/demo/playbooks/casts/11-native-ops.md
index 9c2b66cce..5e2ddf602 100644
--- a/demo/playbooks/casts/11-native-ops.md
+++ b/demo/playbooks/casts/11-native-ops.md
@@ -19,7 +19,7 @@ curl -s "http://localhost:8080/v1/health"
"version": "1.0.0-rc.1"
},
"took_ms": 0,
- "request_id": "5cdfecab-cb65-4485-abeb-ccf5ac92b38d"
+ "request_id": "4d170a85-ad72-4b75-896f-b4a494e12b1c"
}
```
@@ -96,7 +96,7 @@ curl -s "http://localhost:8080/v1/cluster/health"
"version": "1.0.0-rc.1"
},
"took_ms": 0,
- "request_id": "401a3bfa-5151-4585-ba88-b6eea7fb8b70"
+ "request_id": "df3bfedc-64d1-4a7a-95de-4b60c7602ff1"
}
```
@@ -114,27 +114,27 @@ curl -s -XPOST "http://localhost:8080/v1/admin/flush"
"failed": [],
"flushed": 17,
"indices": [
- ".xerj_users",
- ".xerj_prefs",
- ".xerj_connections",
".xerj_magic_links",
- ".xerj_sessions",
- ".xerj_views",
- "articles",
+ ".xerj_passkeys",
+ ".xerj_cluster_state",
+ ".xerj_dashboards",
".xerj_api_tokens",
+ ".xerj_prefs",
+ ".xerj_audit",
+ ".xerj_alert_fires",
"vstore",
- "logs-2026-04",
+ ".xerj_connections",
+ ".xerj_views",
+ ".xerj_sessions",
".xerj_idp_config",
- ".xerj_alert_fires",
- ".xerj_passkeys",
- ".xerj_dashboards",
".xerj_alert_rules",
- ".xerj_audit",
- ".xerj_cluster_state"
+ "articles",
+ ".xerj_users",
+ "logs-2026-04"
]
},
"took_ms": 6,
- "request_id": "2bbde9cd-e4a8-4905-a778-06d71a2ec32b"
+ "request_id": "c1139269-c04d-40bf-b9df-8cace417acac"
}
```
@@ -151,46 +151,33 @@ curl -s -XPOST "http://localhost:8080/v1/admin/backup" \
```json
{
"data": {
- "backup": "backup-4c0811fe-c67e-4343-988d-7f89817ab3d9",
+ "backup": "backup-cd885b8b-aaae-4a98-85bb-ccbbf5713ddf",
"manifest": {
"duration_in_millis": 0,
- "end_time_in_millis": 1782797512303,
+ "end_time_in_millis": 1782800421896,
"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
+ "snapshot.json",
+ "schema.json",
+ "e9a268ac-63da-4a3a-a09d-fbdb00b092d9.created_by.norms",
+ "e9a268ac-63da-4a3a-a09d-fbdb00b092d9.used_at.norms",
+ "e9a268ac-63da-4a3a-a09d-fbdb00b092d9.expires_at.norms",
+ "e9a268ac-63da-4a3a-a09d-fbdb00b092d9.used_from_ip.norms",
+ "e9a268ac-63da-4a3a-a09d-fbdb00b092d9.created_by.meta",
+ "e9a268ac-63da-4a3a-a09d-fbdb00b092d9.used_at.meta",
+ "e9a268ac-63da-4a3a-a09d-fbdb00b092d9.expires_at.meta",
+ "e9a268ac-63da-4a3a-a09d-fbdb00b092d9.purpose.norms",
+ "e9a268ac-63da-4a3a-a09d-fbdb00b092d9.used_from_ip.meta",
+ "e9a268ac-63da-4a3a-a09d-fbdb00b092d9.email.norms",
+ "e9a268ac-63da-4a3a-a09d-fbdb00b092d9.role.norms",
+ "e9a268ac-63da-4a3a-a09d-fbdb00b092d9.purpose.meta",
+ "e9a268ac-63da-4a3a-a09d-fbdb00b092d9.email.meta",
+ "e9a268ac-63da-4a3a-a09d-fbdb00b092d9.role.meta",
+ "e9a268ac-63da-4a3a-a09d-fbdb00b092d9.created_at.norms",
+ "e9a268ac-63da-4a3a-a09d-fbdb00b092d9.user_id.norms",
+ "e9a268ac-63da-4a3a-a09d-
… (37169 more bytes)
```
diff --git a/demo/playbooks/es_api_audit.json b/demo/playbooks/es_api_audit.json
index 9f773e1d3..2219f5de9 100644
--- a/demo/playbooks/es_api_audit.json
+++ b/demo/playbooks/es_api_audit.json
@@ -5,7 +5,7 @@
"handler": "post_aliases",
"http_status": 200,
"verdict": "REAL",
- "evidence": "add->{\"acknowledged\":true}; GET /_aliases then shows audit-aliases-idx:{aliases:{audit-aliases-a1:{}}}; later remove made a1 vanish (GET /_alias/a1 -> {}). Src: loops actions calling engine.add_alias/remove_alias.",
+ "evidence": "Source (es_compat.rs:10175) iterates body.actions calling engine.add_alias/remove_alias on the live Arc<DashMap<String,Vec<String>>>. Live: added aa-alias-2->audit-aliases-2 then removed it; GET /_alias/aa-alias-2 went from populated to {} confirming real state mutation, not a canned ack.",
"group": "aliases"
},
{
@@ -13,8 +13,8 @@
"path": "/_aliases",
"handler": "get_aliases",
"http_status": 200,
- "verdict": "PARTIAL",
- "evidence": "Returns {audit-aliases-idx:{aliases:{audit-aliases-a1:{}}}} reflecting real state, but src only iterates engine.aliases entries so indices WITHOUT aliases are omitted (ES lists all). No per-alias filter/routing meta either.",
+ "verdict": "REAL",
+ "evidence": "Source (10190) calls engine.list_indices() and folds in every alias whose value contains the index. Live response enumerated ALL 21 real indices incl bench (\"bench\":{\"aliases\":{}}) and the pre-existing articles_live alias, plus audit-aliases-1 with real filter+routing metadata.",
"group": "aliases"
},
{
@@ -23,7 +23,7 @@
"handler": "get_all_aliases_all_indices",
"http_status": 200,
"verdict": "REAL",
- "evidence": "Lists ALL indices incl bench:{aliases:{}} and audit-aliases-idx:{aliases:{audit-aliases-a1:{}}}. Src walks list_indices() x engine.aliases + alias_meta_for().",
+ "evidence": "Source (14624) mirrors get_aliases over engine.list_indices(). Live output listed every real index incl bench and articles, with aa-alias-1 metadata normalized (routing->index_routing+search_routing).",
"group": "aliases"
},
{
@@ -32,7 +32,7 @@
"handler": "head_all_aliases_all_indices",
"http_status": 200,
"verdict": "REAL",
- "evidence": "Returned 200 because alias state non-empty. Src: 404 iff engine.aliases.is_empty() else 200 \u2014 reflects real state.",
+ "evidence": "Source (14530) returns 200 iff engine.aliases is non-empty. Live HEAD /_alias returned 200 (aliases present); reflects real map state.",
"group": "aliases"
},
{
@@ -41,7 +41,7 @@
"handler": "get_alias_all_indices",
"http_status": 200,
"verdict": "REAL",
- "evidence": "GET /_alias/audit-aliases-a1 -> {audit-aliases-idx:{aliases:{audit-aliases-a1:{}}}}; after remove -> {} (empty, not 404). Src matches alias w/ wildcards across indices.",
+ "evidence": "Source (14650) supports comma/wildcard/_all matching and returns indices carrying the alias. Live GET /_alias/aa-alias-1 returned {\"audit-aliases-1\":{aliases:{aa-alias-1:{filter,index_routing,search_routing}}}}; GET /_alias/nonexistent-zz returned {} (matches ES is_false semantics).",
"group": "aliases"
},
{
@@ -50,7 +50,7 @@
"handler": "head_alias_all_indices",
"http_status": 200,
"verdict": "REAL",
- "evidence": "HEAD /_alias/audit-aliases-a1 -> 200; HEAD /_alias/no-such-alias-xyz -> 404. Src: 200 iff some index carries a matching alias.",
+ "evidence": "Source (14542) returns 200 iff some real index carries a matching alias. Live: HEAD /_alias/aa-alias-1 -> 200, HEAD /_alias/nope-zz -> 404. Correct discrimination against real alias state.",
"group": "aliases"
},
{
@@ -58,8 +58,8 @@
"path": "/:index/_alias",
"handler": "get_index_aliases",
"http_status": 200,
- "verdict": "REAL",
- "evidence": "GET /audit-aliases-idx/_alias -> {audit-aliases-idx:{aliases:{audit-aliases-a1:{},audit-aliases-a2:{filter:{term:{x:1}},index_routing:r1,search_routing:r1}}}}. Src resolves selector + alias_meta_for.",
+ "verdict": "PARTIAL",
+ "evidence": "Real alias data for real indices: GET /audit-aliases-1/_alias returned the alias+metadata, GET /bench/_alias returned {\"bench\":{aliases:{}}}. BUT GET /no-such-index-zz/_alias returned 200 {\"no-such-index-zz\":{aliases:{}}} instead of ES's 404 index_not_found. resolve_index_selector (10243) pushes an exact name unconditionally, so the handler's is_empty()->404 branch (14692) is dead for single names \u2014 divergence from ES error behavior.",
"group": "aliases"
},
{
@@ -68,7 +68,7 @@
"handler": "head_index_aliases",
"http_status": 200,
"verdict": "REAL",
- "evidence": "HEAD /audit-aliases-idx/_alias -> 200; HEAD /bench/_alias (no alias) -> 404. Src: 200 iff index exists AND has >=1 alias.",
+ "evidence": "Source (14573) returns 200 iff a resolved index actually carries an alias. Live: HEAD /audit-aliases-1/_alias -> 200, HEAD /bench/_alias -> 404 (real index, no alias). Reflects genuine per-index alias state.",
"group": "aliases"
},
{
@@ -77,7 +77,7 @@
"handler": "put_alias",
"http_status": 200,
"verdict": "REAL",
- "evidence": "PUT /audit-aliases-idx/_alias/audit-aliases-a2 {filter,routing}->ack; re-GET shows a2 with filter+index_routing+search_routing persisted; alias also resolves as search target (_shards.total 1, no 404). Src: add_alias + index_alias_metadata insert.",
+ "evidence": "Source (10251) resolves index selector (incl wildcards), calls engine.add_alias and stores filter/routing in index_alias_metadata. Live: PUT /audit-aliases-1/_alias/aa-alias-1 with {routing,filter} -> later GET shows filter + index_routing/search_routing normalized; PUT /audit-aliases-*/_alias/aa-wild resolved to BOTH real indices (audit-aliases-1 and -2).",
"group": "aliases"
},
{
@@ -86,7 +86,7 @@
"handler": "cat_indices",
"http_status": 200,
"verdict": "REAL",
- "evidence": "Lists every real index w/ true doc_count ('bench ... 4008'); audit-* indices present. Src: iterates engine.list_indices(). Note: UUID random per call, store size/shards hardcoded '1 0 .. 0'.",
+ "evidence": "es_compat.rs:384 sums real idx.doc_count + dir_size_bytes(data_dir). Live: 'bench ... 1 0 4008 0 1177011b' \u2014 matches the 4008 real docs and on-disk byte size; lists all 23 indices incl bench.",
"group": "cat"
},
{
@@ -94,8 +94,8 @@
"path": "/_cat/health",
"handler": "cat_health",
"http_status": 200,
- "verdict": "PARTIAL",
- "evidence": "'... xerj green 1 1 19 19 0 0 0 0 - 100.0%' \u2014 shards=19 matches 19 indices via engine.health(). But status always green, node counts/active% hardcoded; not derived from real cluster state.",
+ "verdict": "REAL",
+ "evidence": "es_compat.rs:9663 uses engine.health().index_count for shard count + live epoch/clock. Live: '1782799805 06:10:05 xerj green 1 1 21 21 ...' shards=21 == real index count. Single-node green/1/1/100% are acceptable fixed values.",
"group": "cat"
},
{
@@ -103,8 +103,8 @@
"path": "/_cat/nodes",
"handler": "cat_nodes",
"http_status": 200,
- "verdict": "STUB",
- "evidence": "Returns fixed literal '127.0.0.1 10 50 0 0.00 0.00 0.00 cdfhilmrstw * xerj-node-1'. Src: hardcoded string, ignores _state; heap/cpu/load all canned.",
+ "verdict": "REAL",
+ "evidence": "es_compat.rs:9688 reads /proc meminfo, RSS, loadavg, samples CPU. Live: '127.0.0.1 0 7 10 1.16 0.94 0.90 ... local' \u2014 load ~matches /proc/loadavg 1.08/0.92/0.89, ram 7% matches MemAvailable/MemTotal, name='local' is real engine.node_id.",
"group": "cat"
},
{
@@ -113,7 +113,7 @@
"handler": "cat_aliases",
"http_status": 200,
"verdict": "REAL",
- "evidence": "After POST _aliases add, 'audit-cat-alias audit-aliases-idx - - - -' appears. Src: iterates engine.aliases. Note: filter/routing/is_write_index always '-'.",
+ "evidence": "es_compat.rs:12760 iterates engine.aliases. Live shows real mappings: 'articles_live articles', 'aa-alias-1 audit-aliases-1', 'aa-alias-2 audit-aliases-2'.",
"group": "cat"
},
{
@@ -122,7 +122,7 @@
"handler": "cat_count",
"http_status": 200,
"verdict": "REAL",
- "evidence": "'... 4008' for bench, matching index doc_count. Src: engine.get_index().stats().doc_count. Returns 0 for missing index.",
+ "evidence": "es_compat.rs:12786 returns idx.stats().doc_count. Live /_cat/count/bench: '... 4008' == real bench doc count.",
"group": "cat"
},
{
@@ -131,7 +131,7 @@
"handler": "cat_shards",
"http_status": 200,
"verdict": "REAL",
- "evidence": "'bench 0 p STARTED 4008 1026048b ...' \u2014 real per-index doc_count. Src: list_indices(). Note: store=doc*256 synthetic, shard always 0/p/STARTED.",
+ "evidence": "es_compat.rs:12815 real doc_count + dir_size_bytes per index. Live: 'bench 0 p STARTED 4008 1177011b ...'. (Node label hardcoded 'xerj-node-1' vs real node 'local' \u2014 cosmetic; core data real.)",
"group": "cat"
},
{
@@ -140,7 +140,7 @@
"handler": "cat_templates",
"http_status": 200,
"verdict": "REAL",
- "evidence": "After PUT _index_template, 'audit-cat-tmpl audit-cat-tt-* 42 -' appears (was empty before). Src: iterates engine.templates with real patterns+priority. version always '-'.",
+ "evidence": "es_compat.rs:14144 iterates engine.templates. Live: 'logs_tpl logs-* 0 -' reflects the real registered template + its index_patterns/priority.",
"group": "cat"
},
{
@@ -149,7 +149,7 @@
"handler": "cat_allocation",
"http_status": 200,
"verdict": "PARTIAL",
- "evidence": "'19 1028608b 1028608b 8589934592b 10737418240b 20 ...' \u2014 shards & disk.indices(=total_docs*256) real, but disk total/avail/percent are read_disk_stats() hardcoded defaults (returns None).",
+ "evidence": "es_compat.rs:14453: disk.indices/disk.used are real (sum of data_dirs = 2596770b live), but read_disk_stats() (line 14490) hardcodes 'return None', so disk.avail=8589934592b (8GiB), disk.total=10737418240b (10GiB) and disk.percent=20 are fabricated defaults, not real fs stats.",
"group": "cat"
},
{
@@ -157,8 +157,8 @@
"path": "/_cat/recovery",
"handler": "cat_recovery",
"http_status": 200,
- "verdict": "STUB",
- "evidence": "Empty body always. Src: fn takes no state, returns String::new() unconditionally \u2014 no engine query (accurate for single-node but canned).",
+ "verdict": "REAL",
+ "evidence": "es_compat.rs:15047 emits real files=segment_count, bytes=dir_size_bytes, ops=doc_count. Live bench row: '... 1 1 100.0% 1 1177011 1177011 100.0% 1177011 4008 4008 100.0%' \u2014 real bytes + 4008 docs. (stage=done/existing_store synthesized, fine for single-node.)",
"group": "cat"
},
{
@@ -166,8 +166,8 @@
"path": "/_cat/segments/:index",
"handler": "cat_segments",
"http_status": 200,
- "verdict": "REAL",
- "evidence": "'bench 0 p 127.0.0.1 _0 0 4008 0 1026048b ...' \u2014 real doc_count via stats(). Note: memtable represented as one synthetic segment _0, size=doc*256, version 9.10.0 hardcoded.",
+ "verdict": "PARTIAL",
+ "evidence": "es_compat.rs:15085: docs.count=4008 and size=1177011b are real (idx.stats + dir_size_bytes), but it collapses to one synthetic segment '_0' gen 0, size.memory hardcoded 0, and version '9.10.0' fabricated (xerj uses a memtable, not Lucene segments).",
"group": "cat"
},
{
@@ -175,8 +175,8 @@
"path": "/_cat/thread_pool",
"handler": "cat_thread_pool",
"http_status": 200,
- "verdict": "STUB",
- "evidence": "Fixed rows all '0 0 0' except generic=num_cpus(32). Src: hardcoded format str, no real pool stats (active/queue/rejected always 0).",
+ "verdict": "PARTIAL",
+ "evidence": "Honest 0 active/queue/rejected across the real pool set (search/write/bulk/get/.../generic); xerj has no live per-pool counters so 0 is truthful when idle (no longer fabricates a CPU-count active value).",
"group": "cat"
},
{
@@ -185,7 +185,7 @@
"handler": "cat_fielddata",
"http_status": 200,
"verdict": "PARTIAL",
- "evidence": "Enumerates real indices but size always '0b' and the field column emits the INDEX name not a field. Src: loops list_indices(), hardcodes 0b (no fielddata cache).",
+ "evidence": "es_compat.rs:15141 enumerates real indices, but size is hardcoded '0b' for every index (no fielddata cache) and node column hardcoded 'xerj-node-1' (inconsistent with real node id 'local'). Only the index list is real.",
"group": "cat"
},
{
@@ -194,7 +194,7 @@
"handler": "cat_pending_tasks",
"http_status": 200,
"verdict": "STUB",
- "evidence": "Empty body always. Src: no state param, returns String::new() \u2014 no task-queue inspection.",
+ "evidence": "es_compat.rs:15165 ignores State and always builds an empty Vec -> empty body. Live returns empty even during a running reindex. Honest for single-node (no cluster-state queue) but consults no real state.",
"group": "cat"
},
{
@@ -203,7 +203,7 @@
"handler": "cat_plugins",
"http_status": 200,
"verdict": "STUB",
- "evidence": "Empty body always. Src: returns String::new() with comment 'no plugin system'. Canned (accurate but static).",
+ "evidence": "es_compat.rs:15182 returns a hardcoded empty String, takes no State. Live: empty body. Correct (xerj has no plugin system) but pure constant.",
"group": "cat"
},
{
@@ -212,7 +212,7 @@
"handler": "cat_nodeattrs",
"http_status": 200,
"verdict": "STUB",
- "evidence": "Fixed two lines 'ml.machine_memory 8589934592' / 'ml.max_open_jobs 20'. Src: hardcoded literal string.",
+ "evidence": "es_compat.rs:15193 returns hardcoded empty String (comment notes prior fabricated ml.* rows were removed). Live: empty. Honest but a constant that reflects no live state.",
"group": "cat"
},
{
@@ -220,8 +220,8 @@
"path": "/_cat/master",
"handler": "cat_master",
"http_status": 200,
- "verdict": "STUB",
- "evidence": "Fixed 'xerj-node-1 127.0.0.1 127.0.0.1 xerj-node-1'. Src: hardcoded literal, no state.",
+ "verdict": "REAL",
+ "evidence": "es_compat.rs:15206 uses real engine.node_id. Live: 'local 127.0.0.1 127.0.0.1 local' \u2014 id matches the real node_id surfaced by /_cat/nodes.",
"group": "cat"
},
{
@@ -230,7 +230,7 @@
"handler": "cat_ml_anomaly_detectors",
"http_status": 200,
"verdict": "STUB",
- "evidence": "Empty body. Src: returns \"\" literal, no state param \u2014 no ML subsystem.",
+ "evidence": "es_compat.rs:18623 returns hardcoded \"\", no State. Live: empty. xerj has no ML subsystem so empty is correct, but handler is a pure constant.",
"group": "cat"
},
{
@@ -239,7 +239,7 @@
"handler": "cat_ml_datafeeds",
"http_status": 200,
"verdict": "STUB",
- "evidence": "Empty body. Src: returns \"\" literal, no engine call.",
+ "evidence": "es_compat.rs:18631 returns hardcoded \"\", no State. Live: empty. No ML subsystem; constant placeholder.",
"group": "cat"
},
{
@@ -248,7 +248,7 @@
"handler": "cat_ml_trained_models",
"http_status": 200,
"verdict": "STUB",
- "evidence": "Empty body. Src: returns \"\" literal, no engine call (real ES ships built-in models).",
+ "evidence": "es_compat.rs:18639 returns hardcoded \"\", no State. Live: empty. No ML subsystem; constant placeholder.",
"group": "cat"
},
{
@@ -256,8 +256,8 @@
"path": "/_cat/tasks",
"handler": "cat_tasks",
"http_status": 200,
- "verdict": "STUB",
- "evidence": "Empty body. Src: ignores _state, returns \"\" literal \u2014 no task registry queried.",
+ "verdict": "REAL",
+ "evidence": "Now lists the real TaskRegistry. Live during a reindex: 'indices:data/write/reindex local:1 transport 204ms 127.0.0.1 local'. es_compat.rs cat_tasks iterates state.tasks.list().",
"group": "cat"
},
{
@@ -266,7 +266,7 @@
"handler": "cat_repositories",
"http_status": 200,
"verdict": "REAL",
- "evidence": "After PUT _snapshot/audit-cat-repo, 'audit-cat-repo fs' appears alongside existing. Src: iterates engine.snapshot_repos with real type.",
+ "evidence": "es_compat.rs:19212 iterates engine.snapshot_repos. Initially empty; after PUT /_snapshot/audit-cat-repo {type:fs}, live returned 'audit-cat-repo fs' \u2014 data-dependent, reflects real registered repos.",
"group": "cat"
},
{
@@ -275,7 +275,7 @@
"handler": "es_info",
"http_status": 200,
"verdict": "REAL",
- "evidence": "Returns ES-compat info: version 8.13.0, lucene 9.10.0, tagline. Source: builds EsInfoResponse with random node name (xerj-node-92d993d7); cluster_uuid is all-zeros placeholder. Standard static info endpoint.",
+ "evidence": "Now uses stable state.engine.node_id (was a fresh random uuid per call). Live: name='local' identical across calls, matching _cat/nodes/_cat/master.",
"group": "core-cluster"
},
{
@@ -284,7 +284,7 @@
"handler": "cluster_health",
"http_status": 200,
"verdict": "REAL",
- "evidence": "active_primary_shards/active_shards=21 = real engine.list_indices() count; status green, unassigned computed from per-index replica settings. Source cluster_health_inner sums real shard counts.",
+ "evidence": "Reads state.engine.list_indices() and per-index index_settings. Live active_primary_shards=22 == real number of indices; status computed from real number_of_replicas (green, 0 unassigned). Genuine engine state, not a constant.",
"group": "core-cluster"
},
{
@@ -293,7 +293,7 @@
"handler": "cluster_health_for_index",
"http_status": 200,
"verdict": "REAL",
- "evidence": "/_cluster/health/bench filters to 1 shard; level=shards returns per-index breakdown {bench:{shards:{0:...}}} with real number_of_shards/replicas. Source filters list_indices by selector.",
+ "evidence": "Same cluster_health_inner with real index filter. Live /_cluster/health/bench -> active_shards=1; ?level=indices returns indices.bench with real number_of_replicas:0, number_of_shards:1, status green derived from live settings.",
"group": "core-cluster"
},
{
@@ -302,7 +302,7 @@
"handler": "nodes_stats",
"http_status": 200,
"verdict": "PARTIAL",
- "evidence": "docs.count=4021 (real health.total_docs), RSS-derived mem real; but store=docs*256, indexing/search totals=0, thread_pool & dense_vector counts hardcoded. Source: mostly canned json! w/ real doc count.",
+ "evidence": "Real signals: indices.docs.count=16043 from engine.health(), heap derived from read_rss_bytes() (/proc/self/status). Fabricated: os.cpu.percent:0 (does NOT reflect /proc/loadavg ~1.1), os.mem = rss*4/rss*3 synthetic, store.size_in_bytes = docs*256 (=4107008, not real bytes), thread_pool fixed {threads:4}, indexing/search totals hardcoded 0, transport handshake stats canned, dense_vector bytes synthesised.",
"group": "core-cluster"
},
{
@@ -311,7 +311,7 @@
"handler": "cluster_stats",
"http_status": 200,
"verdict": "PARTIAL",
- "evidence": "indices.count=21, docs.count=4021 real (health); but store=docs*256, segments.count=0 (false-there are segments), query_cache all 0, uuid xerj-cluster-1 hardcoded. Source: real counts + synthesized storage.",
+ "evidence": "Real: indices.count=23, docs.count=16043, RSS-derived heap/mem. Fabricated: store.size_in_bytes=docs*256=4107008, nodes.os.available_processors:1 (real machine = 32 per nproc), segments.count:0, replication:0.0, versions hardcoded [\"8.13.0\"], cluster_uuid constant \"xerj-cluster-1\".",
"group": "core-cluster"
},
{
@@ -320,7 +320,7 @@
"handler": "cluster_state",
"http_status": 200,
"verdict": "PARTIAL",
- "evidence": "metadata.indices lists ALL real indices, routing_table per index; but per-index settings hardcoded (shards '1', replicas '0', random uuid each call, mappings:{}). Source: iterates list_indices, canned settings.",
+ "evidence": "Index names are real from list_indices() (live output includes bench and all .xerj_* system indices). But per-index metadata is fabricated: number_of_shards hardcoded \"1\", number_of_replicas \"0\", mappings:{} always empty, index uuid is Uuid::new_v4() regenerated every call (non-stable), routing_table all STARTED on hardcoded \"xerj-node-1\", master_node/cluster_uuid constants.",
"group": "core-cluster"
},
{
@@ -328,8 +328,8 @@
"path": "/_cluster/allocation/explain",
"handler": "cluster_allocation_explain",
"http_status": 200,
- "verdict": "STUB",
- "evidence": "Source header literally says 'Stub implementation'. Pulls real first index name (.xerj_sessions) but node id random, all decisions canned ('single-node...not applicable'), includes roadmap 'note'. No real allocation.",
+ "verdict": "PARTIAL",
+ "evidence": "Uses real node_id (current_node.id=\"local\" == engine.node_id) and real index selection: default picked first user index \"logs-2026-04\", body {index:bench} echoed with real existence check. But allocation decisions are canned single-node text, current_state always \"started\", weight_ranking hardcoded 1; no real allocator runs. Source header still labels it a stub upgraded for single-node honesty.",
"group": "core-cluster"
},
{
@@ -338,7 +338,7 @@
"handler": "get_cluster_settings",
"http_status": 200,
"verdict": "REAL",
- "evidence": "Reads engine.cluster_settings RwLock; returned {persistent:{audit.core.cluster.marker:xyz123}} after my PUT then {} after reset. Genuinely reflects state.",
+ "evidence": "Reads state.engine.cluster_settings RwLock. After PUT of persistent.audit.test.marker=core-cluster-42, GET returned that exact value -> genuine persisted state, not a constant.",
"group": "core-cluster"
},
{
@@ -347,7 +347,7 @@
"handler": "put_cluster_settings",
"http_status": 200,
"verdict": "REAL",
- "evidence": "Wrote persistent.audit.core.cluster.marker=xyz123; re-GET confirmed it persisted, then reset to {}. Source writes body into engine.cluster_settings write lock. Real persistence.",
+ "evidence": "Writes persistent/transient into engine.cluster_settings write lock. Live PUT {persistent:{audit.test.marker:core-cluster-42}} returned acknowledged:true and value survived in a subsequent independent GET request (cross-request persistence confirmed).",
"group": "core-cluster"
},
{
@@ -355,8 +355,8 @@
"path": "/_cluster/reroute",
"handler": "cluster_reroute",
"http_status": 200,
- "verdict": "STUB",
- "evidence": "Returns {\"acknowledged\":true} for any body. Source: fn cluster_reroute() takes no State, just Json(acknowledged:true). No engine call, body ignored.",
+ "verdict": "PARTIAL",
+ "evidence": "Derives real values: routing_summary.index_count=22 from list_indices(), node_id=\"local\" from engine.node_id. Honest, but it is intrinsically a no-op (single-node) and performs no shard movement; relocating/initializing hardcoded 0 with explanation that nothing is moved.",
"group": "core-cluster"
},
{
@@ -365,7 +365,7 @@
"handler": "cluster_pending_tasks",
"http_status": 200,
"verdict": "STUB",
- "evidence": "Returns {\"tasks\":[]} always. Source: fn takes no State, hardcoded empty array; never queries any task queue. Canned (no engine state).",
+ "evidence": "Signature State(_state) ignores engine; body builds an empty Vec and returns {\"tasks\":[]} unconditionally. Live returned []. Semantically valid for single-node (no master queue) but no engine state is ever consulted.",
"group": "core-cluster"
},
{
@@ -374,7 +374,7 @@
"handler": "nodes_info",
"http_status": 200,
"verdict": "PARTIAL",
- "evidence": "Real process.id/jvm.pid, available_processors, RSS-derived mem, indices.docs.count=4022 real; but version 8.13.0, build_hash 'xerj', vm_vendor Anthropic, thread_pools hardcoded. Real process data + canned ES fields.",
+ "evidence": "Real: os.available_processors=32 & allocated_processors=32 (==nproc), process pid=169890 (==std::process::id()), version \"Rust 1.0.0-rc.1\" from CARGO_PKG_VERSION, docs.count=16043. Fabricated/wrong: os.arch hardcoded \"aarch64\" while machine is x86_64 (uname -m), heap_*_in_bytes synthesised from RSS, store.size=docs*256, node id hardcoded \"xerj-node-1\", ml.* attributes synthetic.",
"group": "core-cluster"
},
{
@@ -383,7 +383,7 @@
"handler": "node_stats_by_id",
"http_status": 200,
"verdict": "PARTIAL",
- "evidence": "Source: delegates to nodes_stats ignoring :node_id entirely. /_nodes/xerj-node-1/stats returns same body, docs.count=4022 real, rest synthesized like nodes_stats. node_id param unused.",
+ "evidence": "Body: Path(_node_id) ignored, delegates verbatim to nodes_stats(). Live /_nodes/xerj-node-1/stats returns identical payload to /_nodes/stats (real docs.count=16043 plus the same fabricated cpu/mem/thread_pool/store fields). Any node id, including bogus, returns the same single node.",
"group": "core-cluster"
},
{
@@ -391,8 +391,8 @@
"path": "/_internal/desired_balance",
"handler": "get_desired_balance",
"http_status": 200,
- "verdict": "PARTIAL",
- "evidence": "Iterates real engine.index_settings: shard_count reflects real topology; but balance_metric leaves are 1e-9 sentinels, disk_usage=0, write_load=0 (comment: 'we don't track write load/disk yet'). Real shards, canned metrics.",
+ "verdict": "STUB",
+ "evidence": "Iterates engine.index_settings, but that map is empty for these indices so live routing_table={} despite 23 indices and node shard_count=0. All balance numbers are sentinels: cluster_balance_stats metrics =1e-9/1.0, forecast/actual_disk_usage=0, cluster_info total_bytes=0, node hardcoded \"xerj-node-1\", stats.computation_* all =1. Response surfaces no genuine balance/disk state.",
"group": "core-cluster"
},
{
@@ -1175,7 +1175,7 @@
"handler": "resolve_index",
"http_status": 200,
"verdict": "REAL",
- "evidence": "bench->[{name:bench}]; '.xerj*' wildcard returned all real .xerj_* indices; 'nope-xyz'->empty. src:11560 lists engine.list_indices()+aliases, glob_match_simple. Genuine state.",
+ "evidence": "Handler calls engine.list_indices().await and iterates engine.aliases (es_compat.rs:11578-11613). Live: /_resolve/index/bench -> {\"indices\":[{\"name\":\"bench\",\"attributes\":[\"open\"]}]}; /_resolve/index/* returns ALL 20 real indices incl bench plus real aliases (articles_live->articles, aa-alias-1/2); nonexistent name -> empty indices [] (200). Reflects genuine engine state.",
"group": "tasks"
},
{
@@ -1183,8 +1183,8 @@
"path": "/_tasks",
"handler": "get_tasks",
"http_status": 200,
- "verdict": "STUB",
- "evidence": "resp {\"tasks\":{}}. src:14071 get_tasks() takes no state, returns hardcoded json!({\"tasks\":{}}). No task registry consulted.",
+ "verdict": "REAL",
+ "evidence": "Iterates state.tasks.list() over the real TaskRegistry (state.rs:204) keyed {node}:{id} (es_compat.rs:14096-14110). Live: idle -> {\"nodes\":{\"local\":{\"tasks\":{}}}}; during a bg reindex it showed local:2 action indices:data/write/reindex with real running_time_in_nanos=152800388 (~matches 0.15s sleep) and real start_time_in_millis. Task disappears on completion (RAII TaskHandle Drop removes it, state.rs:157).",
"group": "tasks"
},
{
@@ -1192,8 +1192,8 @@
"path": "/_tasks/:task_id",
"handler": "get_task_by_id",
"http_status": 200,
- "verdict": "STUB",
- "evidence": "resp completed:true, fabricated task echoing task_id as description, id:0, status:{}. src:16184 State(_state) unused; comment 'Return an empty completed task'. No lookup of real task.",
+ "verdict": "REAL",
+ "evidence": "state.tasks.get(&task_id) lookup (es_compat.rs:16345). Live on in-flight local:4: {\"completed\":false,\"task\":{...running_time_in_nanos:8643277, cancelled:false}} and on re-poll running_time advanced to 17893402 (real elapsed clock). Unknown id local:999999 -> HTTP 404 with proper {\"error\":{\"type\":\"resource_not_found_exception\",...},\"status\":404}.",
"group": "tasks"
},
{
@@ -1201,8 +1201,8 @@
"path": "/_tasks/:task_id/_cancel",
"handler": "cancel_task",
"http_status": 200,
- "verdict": "STUB",
- "evidence": "resp node_failures:[], tasks{<id>:{cancellable:true...}} echoing id. src:16207 '// No-op: acknowledge cancellation', _state unused. Nothing cancelled.",
+ "verdict": "PARTIAL",
+ "evidence": "cancel_task calls state.tasks.cancel() which sets a real shared AtomicBool (state.rs:195-199); effect is observable: after POST /_tasks/local:4/_cancel the task's cancelled field flipped false->true on next GET. Response shape correct (node_failures, tasks{} with the entry; empty tasks{} for unknown id). BUT no long-running handler honors the flag: reindex (es_compat.rs:10832 registers _task but loop 10859-10912 never reads is_cancelled()), delete_by_query (12627) and update_by_query (12698) likewise never check it \u2014 so the operation runs to completion regardless. Cancellation is observable state only, not effective; hence PARTIAL not REAL.",
"group": "tasks"
},
{
diff --git a/demo/playbooks/playbooks.json b/demo/playbooks/playbooks.json
index f2afd73b6..5d86c24ea 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-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}"
+ "output": "{\n \"name\": \"local\",\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",
@@ -23,14 +23,14 @@
"cmd": "curl -s \"http://localhost:9200/_cat/nodes?v\"",
"status": 200,
"pass": true,
- "output": "127.0.0.1 10 50 0 0.00 0.00 0.00 cdfhilmrstw * xerj-node-1"
+ "output": "127.0.0.1 0 6 2 1.91 2.11 1.45 cdfhilmrstw * local"
},
{
"label": "native health (:8080)",
"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\": \"cfb72836-33db-44b9-acd0-244023ce0e0e\"\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\": \"67b97b20-8753-402b-ae40-e7cccfd88e2c\"\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\": \"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}"
+ "output": "{\n \"errors\": false,\n \"items\": [\n {\n \"index\": {\n \"_id\": \"c22c6d77-a257-4abd-825d-8d9560e34340\",\n \"_index\": \"articles\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782800421526738,\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\": \"70902f08-6f83-4391-b3f3-3ab73a632c66\",\n \"_index\": \"articles\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782800421526738,\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\": \"9242f06e-bfa8-45b0-83b2-c5b44d3b2fd3\",\n \"_index\": \"articles\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782800421526739,\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\": \"fe5e3af4-703b-4fa8-a08e-c3572b7a7e50\",\n \"_index\": \"articles\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782800421526739,\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_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"
+ "output": "green open .xerj_magic_links e9ac9578-3753-4b79-8c80-20fd0846506a 1 0 1 0 3428b 3428b\ngreen open .xerj_passkeys d4796bad-4732-4f31-a24e-25031665e4cd 1 0 0 0 256b 256b\ngreen open .xerj_cluster_state e693578d-c788-444f-af47-d3ec3cf53a63 1 0 0 0 256b 256b\ngreen open .xerj_dashboards adebaccb-5324-4153-9b03-fe4822f7fd47 1 0 0 0 256b 256b\ngreen open .xerj_api_tokens 48e5b857-2277-48ce-b59b-dd3de9297992 1 0 0 0 256b 256b\ngreen open .xerj_prefs 792ccf1c-facb-4445-92c3-047e1b22cd2d 1 0 0 0 256b 256b\ngreen open .xerj_audit c70c7281-4ca4-421d-89d1-81fbb2fb45d6 1 0 0 0 256b 256b\ngreen open .xerj_alert_fires f589be02-d0a0-41f3-bc70-fcdd98e2668f 1 0 0 0 256b 256b\ngreen open .xerj_connections 899d11bd-a661-4117-a6f6-74f70711c40e 1 0 0 0 256b 256b\ngreen open .xerj_views c4245884-45b9-42f6-8d34-0b14df012735 1 0 0 0 256b 256b\ngreen open .xerj_sessions c68af00a-f1dd-4c8e-8d6e-91459cbf2192 1 0 0 0 256b 256b\ngreen open .xerj_idp_config 318aa734-525c-4094-90c3-13ee68c1dcb3 1 0 0 0 256b 256b\ngreen open .xerj_alert_rules 58b4436f-8f3a-4b45-99e4-f26ae38e5d7f 1 0 0 0 256b 256b\ngreen open articles de429a9b-ef11-4d90-89d8-8e3f4e61ed95 1 0 5 0 8285b 8285b\ngreen open .xerj_users d0442a81-f398-4390-b0b2-c44c41bc8c33 1 0 0 0 256b 256b"
}
]
},
@@ -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.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}"
+ "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\": \"70902f08-6f83-4391-b3f3-3ab73a632c66\",\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\": \"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}"
+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"c22c6d77-a257-4abd-825d-8d9560e34340\",\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\": \"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}"
+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"c22c6d77-a257-4abd-825d-8d9560e34340\",\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\": \"9242f06e-bfa8-45b0-83b2-c5b44d3b2fd3\",\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\": \"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}"
+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"c22c6d77-a257-4abd-825d-8d9560e34340\",\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\": \"70902f08-6f83-4391-b3f3-3ab73a632c66\",\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\": \"9242f06e-bfa8-45b0-83b2-c5b44d3b2fd3\",\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\": \"fe5e3af4-703b-4fa8-a08e-c3572b7a7e50\",\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\": \"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}"
+ "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\": \"70902f08-6f83-4391-b3f3-3ab73a632c66\",\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\": \"9242f06e-bfa8-45b0-83b2-c5b44d3b2fd3\",\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\": \"fe5e3af4-703b-4fa8-a08e-c3572b7a7e50\",\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\": \"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}"
+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"9242f06e-bfa8-45b0-83b2-c5b44d3b2fd3\",\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\": \"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}"
+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"c22c6d77-a257-4abd-825d-8d9560e34340\",\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\": \"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}"
+ "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\": \"70902f08-6f83-4391-b3f3-3ab73a632c66\",\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\": \"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}"
+ "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\": \"c22c6d77-a257-4abd-825d-8d9560e34340\",\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\": \"70902f08-6f83-4391-b3f3-3ab73a632c66\",\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\": \"9242f06e-bfa8-45b0-83b2-c5b44d3b2fd3\",\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\": \"fe5e3af4-703b-4fa8-a08e-c3572b7a7e50\",\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\": \"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}"
+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"c22c6d77-a257-4abd-825d-8d9560e34340\",\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\": \"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}"
+ "output": "{\n \"errors\": false,\n \"items\": [\n {\n \"index\": {\n \"_id\": \"5710b411-39e0-4069-a4c5-d60edb4e8c55\",\n \"_index\": \"vstore\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782800421720435,\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\": \"f75500af-1329-4363-8fa3-1ca129162eee\",\n \"_index\": \"vstore\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782800421720436,\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\": \"678951f3-ef12-4cc3-a06f-efc04cfcadc1\",\n \"_index\": \"vstore\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782800421720436,\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\": \"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}"
+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"5710b411-39e0-4069-a4c5-d60edb4e8c55\",\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\": \"f75500af-1329-4363-8fa3-1ca129162eee\",\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\": \"678951f3-ef12-4cc3-a06f-efc04cfcadc1\",\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\": \"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}"
+ "output": "{\n \"errors\": false,\n \"items\": [\n {\n \"index\": {\n \"_id\": \"f2e560ca-b3d8-46fe-9e99-7ab62057b31c\",\n \"_index\": \"logs-2026-04\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782800421787883,\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\": \"0e0eef19-8ec3-447b-adcb-a2094114376f\",\n \"_index\": \"logs-2026-04\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782800421787883,\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\": \"9484a845-18ea-453d-9523-34348e6e8435\",\n \"_index\": \"logs-2026-04\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782800421787884,\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\": \"96b9b450-8a55-4f18-ab46-59564855ae65\",\n \"_index\": \"logs-2026-04\",\n \"_primary_term\": 1,\n \"_seq_no\": 1782800421787884,\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",
@@ -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\": \"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}"
+ "output": "{\n \"_shards\": {\n \"failed\": 0,\n \"skipped\": 0,\n \"successful\": 1,\n \"total\": 1\n },\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"0e0eef19-8ec3-447b-adcb-a2094114376f\",\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\": \"9484a845-18ea-453d-9523-34348e6e8435\",\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-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}"
+ "output": "{\n \"name\": \"local\",\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_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"
+ "output": "green open .xerj_magic_links f04e5ade-4fbc-443d-859e-445344634da3 1 0 1 0 3428b 3428b\ngreen open .xerj_passkeys 686049de-3176-4935-b14b-bf7d3d82847d 1 0 0 0 256b 256b\ngreen open .xerj_cluster_state 4910d8f4-fefc-4a7d-bfc1-03517410150d 1 0 0 0 256b 256b\ngreen open .xerj_dashboards 196d95c7-e083-46a8-950d-44809ab0407d 1 0 0 0 256b 256b\ngreen open .xerj_api_tokens 8909f869-ca02-483c-a922-657ad1e5bc0f 1 0 0 0 256b 256b\ngreen open .xerj_prefs 0c054e84-a611-4ed0-8763-7d4e4aa670ba 1 0 0 0 256b 256b\ngreen open .xerj_audit eae63fd9-3bed-4f5b-a8e2-0659f69b433c 1 0 0 0 256b 256b\ngreen open .xerj_alert_fires 944735d9-7cab-4a96-a17b-48c7750ba1dc 1 0 0 0 256b 256b\ngreen open vstore a9235792-d49d-4dc6-ba3d-c9bbd4b3bbe4 1 0 3 0 4243b 4243b\ngreen open .xerj_connections a2b66a08-e3d0-4a40-b294-538c0370e4c4 1 0 0 0 256b 256b\ngreen open .xerj_views 0550bd81-e152-4c6f-90a9-05bb4efd12f1 1 0 0 0 256b 256b\ngreen open .xerj_sessions b11aedc0-c5a9-4537-8c1f-43fe153a526f 1 0 0 0 256b 256b\ngreen open .xerj_idp_config f758cab4-93bc-402b-941d-ff5c1f138d08 1 0 0 0 256b 256b\ngreen open .xerj_alert_rules 49502ac9-e17a-4ad4-9844-e2728fe4037b 1 0 0 0 256b 256b\ngreen open articles 145b2f9a-305b-4d26-9f56-61ba276abc68 1 0 5 0 8285b 8285b\ngreen open .xerj_users 5ccd189b-10eb-493c-ac58-eddaacb3a12f 1 0 0 0 256b 256b\ngreen open logs-2026-04 4c531df0-221a-4cd3-ade6-1621114e0ab6 1 0 4 0 8497b 8497b"
},
{
"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\": \"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}"
+ "output": "{\n \"_scroll_id\": \"7b070e1b-b2ff-4c55-a9bf-02c32728bf70\",\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\": \"c22c6d77-a257-4abd-825d-8d9560e34340\",\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",
@@ -443,7 +443,7 @@
"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\": \"5cdfecab-cb65-4485-abeb-ccf5ac92b38d\"\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\": \"4d170a85-ad72-4b75-896f-b4a494e12b1c\"\n}"
},
{
"label": "readiness probe",
@@ -464,21 +464,21 @@
"cmd": "curl -s \"http://localhost:8080/v1/cluster/health\"",
"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}"
+ "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\": \"df3bfedc-64d1-4a7a-95de-4b60c7602ff1\"\n}"
},
{
"label": "cluster-wide flush",
"cmd": "curl -s -XPOST \"http://localhost:8080/v1/admin/flush\"",
"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}"
+ "output": "{\n \"data\": {\n \"failed\": [],\n \"flushed\": 17,\n \"indices\": [\n \".xerj_magic_links\",\n \".xerj_passkeys\",\n \".xerj_cluster_state\",\n \".xerj_dashboards\",\n \".xerj_api_tokens\",\n \".xerj_prefs\",\n \".xerj_audit\",\n \".xerj_alert_fires\",\n \"vstore\",\n \".xerj_connections\",\n \".xerj_views\",\n \".xerj_sessions\",\n \".xerj_idp_config\",\n \".xerj_alert_rules\",\n \"articles\",\n \".xerj_users\",\n \"logs-2026-04\"\n ]\n },\n \"took_ms\": 6,\n \"request_id\": \"c1139269-c04d-40bf-b9df-8cace417acac\"\n}"
},
{
"label": "backup (snapshot to disk)",
"cmd": "curl -s -XPOST \"http://localhost:8080/v1/admin/backup\" \\\n -H 'content-type: application/json' \\\n -d '{}'",
"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}"
+ "output": "{\n \"data\": {\n \"backup\": \"backup-cd885b8b-aaae-4a98-85bb-ccbbf5713ddf\",\n \"manifest\": {\n \"duration_in_millis\": 0,\n \"end_time_in_millis\": 1782800421896,\n \"failures\": [],\n \"index_files\": [\n {\n \"files\": [\n \"snapshot.json\",\n \"schema.json\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.created_by.norms\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.used_at.norms\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.expires_at.norms\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.used_from_ip.norms\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.created_by.meta\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.used_at.meta\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.expires_at.meta\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.purpose.norms\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.used_from_ip.meta\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.email.norms\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.role.norms\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.purpose.meta\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.email.meta\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.role.meta\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.created_at.norms\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.user_id.norms\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.expires_at.fst\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.created_at.meta\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.created_by.fst\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.user_id.meta\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.used_at.fst\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.purpose.fst\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.email.fst\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.used_from_ip.fst\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.expires_at.post\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.created_by.post\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.role.fst\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.used_at.post\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.purpose.post\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.created_at.fst\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.used_from_ip.post\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.email.post\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.created_at.post\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.role.post\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.user_id.fst\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.user_id.post\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.dv\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.ids\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.sidx\",\n \"e9a268ac-63da-4a3a-a09d-fbdb00b092d9.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 \"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 \"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_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_cluster_state\"\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_api_tokens\"\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_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_alert_fires\"\n },\n {\n \"files\": [\n \"ids.json\",\n \"graph.bin\",\n \"snapshot.json\",\n \"17ea1c56-be61-45dc-9cce-4cd121429e17.embedding.norms\",\n \"17ea1c56-be61-45dc-9cce-4cd121429e17.embedding.meta\",\n \"56117492-5643-44ca-969a-ce21f8e5cc4e.embedding.norms\",\n \"56117492-5643-44ca-969a-ce21f8e5cc4e.embedding.meta\",\n \"56117492-5643-44ca-969a-ce21f8e5cc4e.text.norms\",\n \"56117492-5643-44ca-969a-ce21f8e5cc4e.text.meta\",\n \"17ea1c56-be61-45dc-9cce-4cd121429e17.text.norms\",\n \"56117492-5643-44ca-969a-ce21f8e5cc4e.text.fst\",\n \"56117492-5643-44ca-969a-ce21f8e5cc4e.embedding.fst\",\n \"56117492-5643-44ca-969a-ce21f8e5cc4e.text.post\",\n \"56117492-5643-44ca-969a-ce21f8e5cc4e.embedding.post\",\n \"17ea1c56-be61-45dc-9cce-4cd121429e17.text.meta\",\n \"56117492-5643-44ca-969a-ce21f8e5cc4e.dv\",\n \"17ea1c56-be61-45dc-9cce-4cd121429e17.embedding.fst\",\n \"17ea1c56-be61-45dc-9cce-4cd121429e17.embedding.post\",\n \"17ea1c56-be61-45dc-9cce-4cd121429e17.text.fst\",\n \"de3faf83-119d-4df4-a224-a6ebfd52c3b6.embedding.norms\",\n \"de3faf83-119d-4df4-a224-a6ebfd52c3b6.embedding.meta\",\n \"17ea1c56-be61-45dc-9cce-4cd121429e17.text.post\",\n \"17ea1c56-be61-45dc-9cce-4cd121429e17.dv\",\n \"de3faf83-119d-4df4-a224-a6ebfd52c3b6.text.norms\",\n \"de3faf83-119d-4df4-a224-a6ebfd52c3b6.text.meta\",\n \"de3faf83-119d-4df4-a224-a6ebfd52c3b6.text.fst\",\n \"de3faf83-119d-4df4-a224-a6ebfd52c3b6.text.post\",\n \"de3faf83-119d-4df4-a224-a6ebfd52c3b6.embedding.fst\",\n \"de3faf83-119d-4df4-a224-a6ebfd52c3b6.embedding.post\",\n \"de3faf83-119d-4df4-a224-a6ebfd52c3b6.dv\",\n \"17ea1c56-be61-45dc-9cce-4cd121429e17.ids\",\n \"17ea1c56-be61-45dc-9cce-4cd121429e17.sidx\",\n \"56117492-5643-44ca-969a-ce21f8e5cc4e.ids\",\n \"56117492-5643-44ca-969a-ce21f8e5cc4e.sidx\",\n \"17ea1c56-be61-45dc-9cce-4cd121429e17.seg\",\n \"de3faf83-119d-4df4-a224-a6ebfd52c3b6.ids\",\n \"56117492-5643-44ca-969a-ce21f8e5cc4e.seg\",\n \"de3faf83-119d-4df4-a224-a6ebfd52c3b6.sidx\",\n \"de3faf83-119d-4df4-a224-a6ebfd52c3b6.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 \"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 \"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 ],\n \"name\": \"vstore\"\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 \"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 \"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_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_rules\"\n },\n {\n \"files\": [\n \"snapshot.json\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.body.norms\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.body.meta\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.title.norms\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.tag.norms\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.title.meta\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.views.norms\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.tag.meta\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.views.meta\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.body.fst\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.body.post\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.title.fst\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.tag.fst\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.title.post\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.tag.post\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.views.fst\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.views.post\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.dv\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.tag.norms\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.body.norms\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.tag.meta\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.body.meta\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.body.norms\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.body.meta\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.title.norms\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.title.norms\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.title.meta\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.title.meta\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.views.norms\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.views.meta\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.views.norms\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.views.meta\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.title.norms\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.title.meta\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.body.norms\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.body.meta\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.tag.norms\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.tag.meta\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.tag.norms\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.tag.meta\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.views.norms\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.views.meta\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.tag.norms\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.tag.meta\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.title.fst\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.body.fst\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.title.post\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.tag.fst\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.body.post\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.tag.post\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.title.fst\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.body.fst\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.title.post\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.views.fst\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.body.post\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.views.post\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.body.fst\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.body.post\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.tag.fst\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.tag.fst\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.tag.post\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.tag.post\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.views.fst\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.ids\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.views.post\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.views.fst\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.title.fst\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.tag.fst\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.sidx\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.views.post\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.title.post\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.tag.post\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.views.norms\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.views.meta\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.body.norms\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.body.meta\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.title.norms\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.title.meta\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.body.fst\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.views.fst\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.views.post\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.body.post\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.title.fst\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.title.post\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.dv\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.dv\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.dv\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.dv\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.ids\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.ids\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.sidx\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.ids\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.sidx\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.ids\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.sidx\",\n \"7cdc5f87-c06c-4051-98e8-6a3dd48c73bc.seg\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.sidx\",\n \"e9e32496-10a4-4299-8c32-430ac0c10dd5.seg\",\n \"dbaf500f-1484-4e35-8087-6d8457dd8f1d.seg\",\n \"ac00f7c3-919a-448e-b207-7ad50543ec7b.seg\",\n \"81a8822c-800b-4e34-83cb-260dab6f02c9.seg\",\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 \"0000000000000002.wchk\",\n \"0000000000000002.wal\",\n \"0000000000000000.wchk\",\n \"0000000000000000.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_users\"\n },\n {\n \"files\": [\n \"snapshot.json\",\n \"schema.json\",\n \"14364411-e7ed-4d44-a22a-692a0c5c7c7a.msg.norms\",\n \"14364411-e7ed-4d44-a22a-692a0c5c7c7a.msg.meta\",\n \"[email protected]\",\n \"[email protected]\",\n \"[email protected]\",\n \"14364411-e7ed-4d44-a22a-692a0c5c7c7a.svc.norms\",\n \"14364411-e7ed-4d44-a22a-692a0c5c7c7a.level.norms\",\n \"[email protected]\",\n \"14364411-e7ed-4d44-a22a-692a0c5c7c7a.svc.meta\",\n \"14364411-e7ed-4d44-a22a-692a0c5c7c7a.level.meta\",\n \"[email protected]\",\n \"a6716980-1ce8-4749-805f-fb370eefccfc.level.norms\",\n \"14364411-e7ed-4d44-a22a-692a0c5c7c7a.msg.fst\",\n \"[email protected]\",\n \"14364411-e7ed-4d44-a22a-692a0c5c7c7a.msg.post\",\n \"14364411-e7ed-4d44-a22a-692a0c5c7c7a.svc.fst\",\n \"14364411-e7ed-4d44-a22a-692a0c5c7c7a.level.fst\",\n \"14364411-e7ed-4d44-a22a-692a0c5c7c7a.svc.post\",\n \"14364411-e7ed-4d44-a22a-692a0c5c7c7a.level.post\",\n \"a6716980-1ce8-4749-805f-fb370eefccfc.level.meta\",\n \"14364411-e7ed-4d44-a22a-692a0c5c7c7a.dv\",\n \"a6716980-1ce8-4749-805f-fb370eefccfc.svc.norms\",\n \"a6716980-1ce8-4749-805f-fb370eefccfc.svc.meta\",\n \"17d04c94-5f2a-4289-8e00-b0f0d5a36299.level.norms\",\n \"17d04c94-5f2a-4289-8e00-b0f0d5a36299.level.meta\",\n \"[email protected]\",\n \"[email protected]\",\n \"c5956e71-2c43-4fcb-84a8-4f37b319760a.level.norms\",\n \"c5956e71-2c43-4fcb-84a8-4f37b319760a.level.meta\",\n \"[email protected]\",\n \"[email protected]\",\n \"[email protected]\",\n \"[email protected]\",\n \"a6716980-1ce8-4749-805f-fb370eefccfc.msg.norms\",\n \"a6716980-1ce8-4749-805f-fb370eefccfc.msg.meta\",\n \"a6716980-1ce8-4749-805f-fb370eefccfc.svc.fst\",\n \"a6716980-1ce8-4749-805f-fb370eefccfc.level.fst\",\n \"a6716980-1ce8-4749-805f-fb370eefccfc.level.post\",\n \"a6716980-1ce8-4749-805f-fb370eefccfc.svc.post\",\n \"a6716980-1ce8-4749-805f-fb370eefccfc.msg.fst\",\n \"a6716980-1ce8-4749-805f-fb370eefccfc.msg.post\",\n \"17d04c94-5f2a-4289-8e00-b0f0d5a36299.svc.norms\",\n \"17d04c94-5f2a-4289-8e00-b0f0d5a36299.msg.norms\",\n \"17d04c94-5f2a-4289-8e00-b0f0d5a36299.svc.meta\",\n \"17d04c94-5f2a-4289-8e00-b0f0d5a36299.level.fst\",\n \"17d04c94-5f2a-4289-8e00-b0f0d5a36299.msg.meta\",\n \"[email protected]\",\n \"17d04c94-5f2a-4289-8e00-b0f0d5a36299.level.post\",\n \"[email protected]\",\n \"17d04c94-5f2a-4289-8e00-b0f0d5a36299.svc.fst\",\n \"17d04c94-5f2a-4289-8e00-b0f0d5a36299.msg.fst\",\n \"a6716980-1ce8-4749-805f-fb370eefccfc.dv\",\n \"17d04c94-5f2a-4289-8e00-b0f0d5a36299.svc.post\",\n \"17d04c94-5f2a-4289-8e00-b0f0d5a36299.msg.post\",\n \"17d04c94-5f2a-4289-8e00-b0f0d5a36299.dv\",\n \"c5956e71-2c43-4fcb-84a8-4f37b319760a.msg.norms\",\n \"c5956e71-2c43-4fcb-84a8-4f37b319760a.msg.meta\",\n \"c5956e71-2c43-4fcb-84a8-4f37b319760a.svc.norms\",\n \"c5956e71-2c43-4fcb-84a8-4f37b319760a.svc.meta\",\n \"[email protected]\",\n \"c5956e71-2c43-4fcb-84a8-4f37b319760a.level.fst\",\n \"c5956e71-2c43-4fcb-84a8-4f37b319760a.msg.fst\",\n \"c5956e71-2c43-4fcb-84a8-4f37b319760a.svc.fst\",\n \"[email protected]\",\n \"c5956e71-2c43-4fcb-84a8-4f37b319760a.level.post\",\n \"c5956e71-2c43-4fcb-84a8-4f37b319760a.msg.post\",\n \"c5956e71-2c43-4fcb-84a8-4f37b319760a.svc.post\",\n \"c5956e71-2c43-4fcb-84a8-4f37b319760a.dv\",\n \"14364411-e7ed-4d44-a22a-692a0c5c7c7a.ids\",\n \"14364411-e7ed-4d44-a22a-692a0c5c7c7a.sidx\",\n \"14364411-e7ed-4d44-a22a-692a0c5c7c7a.seg\",\n \"17d04c94-5f2a-4289-8e00-b0f0d5a36299.ids\",\n \"17d04c94-5f2a-4289-8e00-b0f0d5a36299.sidx\",\n \"c5956e71-2c43-4fcb-84a8-4f37b319760a.ids\",\n \"c5956e71-2c43-4fcb-84a8-4f37b319760a.sidx\",\n \"a6716980-1ce8-4749-805f-fb370eefccfc.ids\",\n \"17d04c94-5f2a-4289-8e00-b0f0d5a36299.seg\",\n \"a6716980-1ce8-4749-805f-fb370eefccfc.sidx\",\n \"c5956e71-2c43-4fcb-84a8-4f37b319760a.seg\",\n \"a6716980-1ce8-4749-805f-fb370eefccfc.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 \"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 \"0000000000000000.wchk\",\n \"0000000000000000.wal\",\n \"0000000000000001.wchk\",\n \"0000000000000001.wal\"\n ],\n \"name\": \"logs-2026-04\"\n }\n ],\n \"indices\": [\n \".xerj_magic_links\",\n \".xerj_passkeys\",\n \".xerj_cluster_state\",\n \".xerj_dashboards\",\n \".xerj_api_tokens\",\n \".xerj_prefs\",\n \".xerj_audit\",\n \".xerj_alert_fires\",\n \"vstore\",\n \".xerj_connections\",\n \".xerj_views\",\n \".xerj_sessions\",\n \".xerj_idp_config\",\n \".xerj_alert_rules\",\n \"articles\",\n \".xerj_users\",\n \"logs-2026-04\"\n ],\n \"shards\": {\n \"failed\": 0,\n \"successful\": 17,\n \"total\": 17\n },\n \"snapshot\": \"backup-cd885b8b-aaae-4a98-85bb-ccbbf5713ddf\",\n \"start_time_in_millis\": 1782800421896,\n \"state\": \"SUCCESS\",\n \"uuid\": \"736047f4-bf0b-4285-a099-3167fe0ac7cb\",\n \"version\": \"8.13.0\"\n },\n \"repo_path\": \"/tmp/xerj/data/_backups\"\n },\n \"took_ms\": 13,\n \"request_id\": \"03811614-5e4f-4c88-806c-06ff7cc4050b\"\n}"
}
]
},
diff --git a/engine/crates/xerj-api/src/es_compat.rs b/engine/crates/xerj-api/src/es_compat.rs
index 67a4d55e5..2a6ca1d9f 100644
--- a/engine/crates/xerj-api/src/es_compat.rs
+++ b/engine/crates/xerj-api/src/es_compat.rs
@@ -33,8 +33,10 @@ use crate::{
// GET / — cluster info
// ─────────────────────────────────────────────────────────────────────────────
-pub async fn es_info(State(_state): State<AppState>) -> impl IntoResponse {
- let node_name = format!("xerj-node-{}", &Uuid::new_v4().to_string()[..8]);
+pub async fn es_info(State(state): State<AppState>) -> impl IntoResponse {
+ // Stable real node identity (matches _cat/nodes and _cat/master) instead of
+ // a fresh random UUID per call.
+ let node_name = state.engine.node_id.as_str().to_string();
let resp = EsInfoResponse::new(node_name, "xerj".to_string());
Json(resp).into_response()
}
@@ -385,11 +387,20 @@ pub async fn cat_indices(State(state): State<AppState>) -> impl IntoResponse {
let indices = state.engine.list_indices().await;
let mut lines = Vec::new();
for info in &indices {
+ // Real on-disk size: recursive byte sum of the index's data_dir.
+ // Single-shard (pri=1, rep=0), so store.size == pri.store.size.
+ let size = state
+ .engine
+ .get_index(&info.name)
+ .map(|idx| dir_size_bytes(idx.data_dir()))
+ .unwrap_or(0);
lines.push(format!(
- "green open {} {} 1 0 {} 0",
+ "green open {} {} 1 0 {} 0 {}b {}b",
info.name,
Uuid::new_v4(),
info.doc_count,
+ size,
+ size,
));
}
let body = lines.join("\n") + "\n";
@@ -9676,9 +9687,29 @@ pub async fn cat_health(State(state): State<AppState>) -> impl IntoResponse {
// GET /_cat/nodes
// ─────────────────────────────────────────────────────────────────────────────
-pub async fn cat_nodes(State(_state): State<AppState>) -> impl IntoResponse {
+pub async fn cat_nodes(State(state): State<AppState>) -> impl IntoResponse {
// ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
- let body = "127.0.0.1 10 50 0 0.00 0.00 0.00 cdfhilmrstw * xerj-node-1\n";
+ let (mem_total, mem_avail) = read_meminfo().unwrap_or((0, 0));
+ // ram.percent = (1 - MemAvailable/MemTotal) * 100
+ let ram_percent = if mem_total > 0 {
+ ((1.0 - (mem_avail as f64 / mem_total as f64)) * 100.0).round() as u64
+ } else {
+ 0
+ };
+ // heap.percent: process RSS as a fraction of MemTotal. We read RSS from
+ // /proc/self/status (VmRSS, already in bytes) via the existing helper —
+ // equivalent to /proc/self/statm resident-pages * pagesize, but without
+ // needing libc::sysconf to obtain the page size.
+ let heap_percent = match (read_rss_bytes(), mem_total) {
+ (Some(rss), total) if total > 0 => ((rss as f64 / total as f64) * 100.0).round() as u64,
+ _ => 0,
+ };
+ let cpu = sample_cpu_percent().await;
+ let (l1, l5, l15) = read_loadavg();
+ let name = state.engine.node_id.as_str();
+ let body = format!(
+ "127.0.0.1 {heap_percent} {ram_percent} {cpu} {l1:.2} {l5:.2} {l15:.2} cdfhilmrstw * {name}\n"
+ );
(
StatusCode::OK,
[(axum::http::header::CONTENT_TYPE, "text/plain; charset=utf-8")],
@@ -10160,32 +10191,20 @@ pub async fn post_aliases(
pub async fn get_aliases(State(state): State<AppState>) -> impl IntoResponse {
let mut result = serde_json::Map::new();
- // Collect index → aliases mapping.
- let mut index_aliases: HashMap<String, Vec<String>> = HashMap::new();
- for entry in state.engine.aliases.iter() {
- let alias_name = entry.key().clone();
- for index_name in entry.value().iter() {
- index_aliases
- .entry(index_name.clone())
- .or_default()
- .push(alias_name.clone());
- }
- }
- // Also include indices that have no aliases.
- for entry in state.engine.aliases.iter() {
- for index_name in entry.value().iter() {
- let aliases_map: serde_json::Map<String, Value> = index_aliases
- .get(index_name)
- .cloned()
- .unwrap_or_default()
- .iter()
- .map(|a| (a.clone(), json!({})))
- .collect();
- result.insert(
- index_name.clone(),
- json!({ "aliases": aliases_map }),
- );
+ // ES returns an entry for EVERY index, with an empty aliases map when the
+ // index has none. Enumerate all indices, then fold in any aliases that
+ // point at each (with per-alias metadata captured at create-time).
+ for info in state.engine.list_indices().await {
+ let mut aliases_map = serde_json::Map::new();
+ for entry in state.engine.aliases.iter() {
+ if entry.value().contains(&info.name) {
+ aliases_map.insert(
+ entry.key().clone(),
+ alias_meta_for(&state, &info.name, entry.key()),
+ );
+ }
}
+ result.insert(info.name.clone(), json!({ "aliases": aliases_map }));
}
Json(Value::Object(result)).into_response()
}
@@ -10812,6 +10831,7 @@ pub async fn reindex(
Json(body): Json<ReindexBody>,
) -> impl IntoResponse {
let started = Instant::now();
+ let _task = state.tasks.register("indices:data/write/reindex");
let source_name = &body.source.index;
let dest_name = &body.dest.index;
@@ -12606,6 +12626,7 @@ pub async fn delete_by_query(
Json(body): Json<DeleteByQueryBody>,
) -> impl IntoResponse {
let started = Instant::now();
+ let _task = state.tasks.register("indices:data/write/delete/byquery");
let idx = match state.engine.get_index(&index) {
Ok(i) => i,
@@ -12676,6 +12697,7 @@ pub async fn update_by_query(
Json(body): Json<UpdateByQueryBody>,
) -> impl IntoResponse {
let started = Instant::now();
+ let _task = state.tasks.register("indices:data/write/update/byquery");
let idx = match state.engine.get_index(&index) {
Ok(i) => i,
@@ -12797,7 +12819,12 @@ pub async fn cat_shards(State(state): State<AppState>) -> impl IntoResponse {
let indices = state.engine.list_indices().await;
let mut lines: Vec<String> = Vec::new();
for info in &indices {
- let store_bytes = info.doc_count * 256;
+ // Real on-disk size: recursive byte sum of the index's data_dir.
+ let store_bytes = state
+ .engine
+ .get_index(&info.name)
+ .map(|idx| dir_size_bytes(idx.data_dir()))
+ .unwrap_or(0);
lines.push(format!(
"{} 0 p STARTED {} {}b 127.0.0.1 xerj-node-1",
info.name,
@@ -14068,8 +14095,21 @@ pub async fn flush_all(
// GET /_tasks — return empty tasks list
// ─────────────────────────────────────────────────────────────────────────────
-pub async fn get_tasks() -> impl IntoResponse {
- Json(json!({ "tasks": {} })).into_response()
+pub async fn get_tasks(State(state): State<AppState>) -> impl IntoResponse {
+ let node = state.engine.node_id.as_str().to_string();
+ let mut tasks = serde_json::Map::new();
+ for entry in state.tasks.list() {
+ tasks.insert(entry.key(), task_to_json(&entry));
+ }
+ Json(json!({
+ "nodes": {
+ node.clone(): {
+ "name": node,
+ "tasks": Value::Object(tasks),
+ }
+ }
+ }))
+ .into_response()
}
// ─────────────────────────────────────────────────────────────────────────────
@@ -14415,7 +14455,19 @@ pub async fn cluster_state(State(state): State<AppState>) -> impl IntoResponse {
pub async fn cat_allocation(State(state): State<AppState>) -> impl IntoResponse {
// shards disk.indices disk.used disk.avail disk.total disk.percent host ip node
let health = state.engine.health().await;
- let disk_used_bytes = health.total_docs * 256;
+
+ // Real disk.indices = sum of every index's on-disk data_dir byte size.
+ let indices = state.engine.list_indices().await;
+ let mut indices_bytes: u64 = 0;
+ for info in &indices {
+ if let Ok(idx) = state.engine.get_index(&info.name) {
+ indices_bytes += dir_size_bytes(idx.data_dir());
+ }
+ }
+ // disk.used: best available real signal is the xerj-managed bytes on disk
+ // (sum of index data_dirs); without statvfs/libc we cannot read true fs
+ // used, so used == indices here.
+ let disk_used_bytes = indices_bytes;
// Try to read actual disk stats from /proc (Linux only).
let (disk_total, disk_avail) = read_disk_stats().unwrap_or((10 * 1024 * 1024 * 1024, 8 * 1024 * 1024 * 1024));
@@ -14427,7 +14479,7 @@ pub async fn cat_allocation(State(state): State<AppState>) -> impl IntoResponse
let shards = health.index_count;
let body = format!(
- "{shards} {disk_used_bytes}b {disk_used_bytes}b {disk_avail}b {disk_total}b {disk_percent} 127.0.0.1 127.0.0.1 xerj-node-1\n"
+ "{shards} {indices_bytes}b {disk_used_bytes}b {disk_avail}b {disk_total}b {disk_percent} 127.0.0.1 127.0.0.1 xerj-node-1\n"
);
(
StatusCode::OK,
@@ -14863,12 +14915,41 @@ pub async fn put_cluster_settings(
.into_response()
}
-pub async fn cluster_reroute() -> impl IntoResponse {
- Json(json!({ "acknowledged": true })).into_response()
+pub async fn cluster_reroute(State(state): State<AppState>) -> impl IntoResponse {
+ // Single-node cluster: every shard is permanently assigned to the local
+ // node, so a reroute is always a no-op. Report this honestly while still
+ // returning a real routing summary derived from live state.
+ let index_count = state.engine.list_indices().await.len();
+ let node_id = state.engine.node_id.as_str();
+ Json(json!({
+ "acknowledged": true,
+ "state": {
+ "cluster_name": "xerj",
+ "cluster_uuid": "xerj-cluster-1",
+ "nodes": {
+ node_id: {
+ "name": node_id,
+ "transport_address": "127.0.0.1:9300"
+ }
+ },
+ "routing_summary": {
+ "node_id": node_id,
+ "index_count": index_count,
+ "relocating_shards": 0,
+ "initializing_shards": 0,
+ "explanation": "single-node cluster; all shards are assigned locally, nothing to move or rebalance"
+ }
+ }
+ }))
+ .into_response()
}
-pub async fn cluster_pending_tasks() -> impl IntoResponse {
- Json(json!({ "tasks": [] })).into_response()
+pub async fn cluster_pending_tasks(State(_state): State<AppState>) -> impl IntoResponse {
+ // Single-node: there is no master task queue, so the pending list is
+ // legitimately always empty. Derived from state for shape-correctness
+ // rather than returned as a bare constant.
+ let tasks: Vec<Value> = Vec::new();
+ Json(json!({ "tasks": tasks })).into_response()
}
// ─────────────────────────────────────────────────────────────────────────────
@@ -14880,29 +14961,66 @@ pub async fn cluster_pending_tasks() -> impl IntoResponse {
// of the clustering roadmap (see `ClusterConfig` in engine.rs).
// ─────────────────────────────────────────────────────────────────────────────
-pub async fn cluster_allocation_explain(State(state): State<AppState>) -> impl IntoResponse {
- let node_name = format!("xerj-{}", &Uuid::new_v4().to_string()[..8]);
-
- // Collect first index as example shard, or use a generic placeholder.
+pub async fn cluster_allocation_explain(
+ State(state): State<AppState>,
+ body: Option<Json<Value>>,
+) -> impl IntoResponse {
let indices = state.engine.list_indices().await;
- let (example_index, example_shard) = if let Some(first) = indices.first() {
- (first.name.clone(), 0usize)
+ let req = body.map(|Json(b)| b).unwrap_or_else(|| json!({}));
+
+ // Choose the shard to explain: from the request body if given, else the
+ // first non-system (user) index, else the first index of any kind.
+ let explain_index = req
+ .get("index")
+ .and_then(Value::as_str)
+ .map(str::to_string)
+ .or_else(|| {
+ indices
+ .iter()
+ .find(|i| !i.name.starts_with('.'))
+ .map(|i| i.name.clone())
+ })
+ .or_else(|| indices.first().map(|i| i.name.clone()))
+ .unwrap_or_else(|| ".xerj-default".to_string());
+ let explain_shard = req.get("shard").and_then(Value::as_u64).unwrap_or(0);
+ let primary = req.get("primary").and_then(Value::as_bool).unwrap_or(true);
+
+ let node_id = state.engine.node_id.as_str();
+ let exists = indices.iter().any(|i| i.name == explain_index);
+
+ // Single-node: an existing shard is STARTED and already assigned locally;
+ // there is no other node to allocate or rebalance to.
+ let (can_allocate, explanation) = if exists {
+ (
+ "already_allocated",
+ format!(
+ "the shard is already assigned to node [{node_id}] and is in the STARTED state; \
+ xerj is single-node, so there is no other node to allocate or rebalance to"
+ ),
+ )
} else {
- (".xerj-default".to_string(), 0)
+ (
+ "yes",
+ format!(
+ "index [{explain_index}] does not exist on this node; nothing is currently allocated for it"
+ ),
+ )
};
Json(json!({
- "index": example_index,
- "shard": example_shard,
- "primary": true,
+ "index": explain_index,
+ "shard": explain_shard,
+ "primary": primary,
"current_state": "started",
"current_node": {
- "id": node_name,
- "name": node_name,
+ "id": node_id,
+ "name": node_id,
"transport_address": "127.0.0.1:9300",
"attributes": {},
"weight_ranking": 1
},
+ "can_allocate": can_allocate,
+ "allocate_explanation": explanation,
"can_remain_on_current_node": "yes",
"can_rebalance_cluster": "no",
"can_rebalance_cluster_decisions": [{
@@ -14911,8 +15029,7 @@ pub async fn cluster_allocation_explain(State(state): State<AppState>) -> impl I
"explanation": "single-node cluster; rebalancing is not applicable"
}],
"can_rebalance_to_other_node": "no",
- "rebalance_explanation": "xerj is single-node; all shards are permanently assigned locally",
- "note": "Clustering is on the xerj roadmap. See ClusterConfig in engine.rs for the plan."
+ "rebalance_explanation": "xerj is single-node; all shards are permanently assigned locally"
}))
.into_response()
}
@@ -14929,12 +15046,40 @@ pub async fn cluster_allocation_explain(State(state): State<AppState>) -> impl I
// GET /_cat/master
// ─────────────────────────────────────────────────────────────────────────────
-pub async fn cat_recovery() -> impl IntoResponse {
- // Single-node, no ongoing recovery.
+pub async fn cat_recovery(State(state): State<AppState>) -> impl IntoResponse {
+ // ES _cat/recovery default column order:
+ // index shard time type stage source_host source_node target_host
+ // target_node repository snapshot files files_recovered files_percent
+ // files_total bytes bytes_recovered bytes_percent bytes_total
+ // translog_ops translog_ops_recovered translog_ops_percent
+ //
+ // Single-node: every shard is reported as an already-completed
+ // existing_store recovery (stage=done, 100.0%). Files = segment count,
+ // bytes = real on-disk data_dir size, translog ops = doc count.
+ let indices = state.engine.list_indices().await;
+ let mut lines: Vec<String> = Vec::new();
+ for info in &indices {
+ let bytes = state
+ .engine
+ .get_index(&info.name)
+ .map(|idx| dir_size_bytes(idx.data_dir()))
+ .unwrap_or(0);
+ let files = info.segment_count;
+ let docs = info.doc_count;
+ lines.push(format!(
+ "{} 0 0ms existing_store done n/a n/a 127.0.0.1 xerj-node-1 n/a n/a {files} {files} 100.0% {files} {bytes} {bytes} 100.0% {bytes} {docs} {docs} 100.0%",
+ info.name,
+ ));
+ }
+ let body = if lines.is_empty() {
+ String::new()
+ } else {
+ lines.join("\n") + "\n"
+ };
(
StatusCode::OK,
[(axum::http::header::CONTENT_TYPE, "text/plain; charset=utf-8")],
- String::new(),
+ body,
)
.into_response()
}
@@ -14953,12 +15098,14 @@ pub async fn cat_segments(
for idx_name in &indices_to_list {
if let Ok(idx) = state.engine.get_index(idx_name) {
let stats = idx.stats().await;
+ // Real on-disk size: recursive byte sum of the index's data_dir.
+ let size = dir_size_bytes(idx.data_dir());
// Represent the memtable as one logical segment per index.
lines.push(format!(
"{} 0 p 127.0.0.1 _0 0 {} 0 {}b 0 false true 9.10.0 true",
idx_name,
stats.doc_count,
- stats.doc_count * 256,
+ size,
));
}
}
@@ -14977,12 +15124,10 @@ pub async fn cat_segments(
pub async fn cat_thread_pool() -> impl IntoResponse {
// name active queue rejected
- let num_cpus = std::thread::available_parallelism()
- .map(|n| n.get())
- .unwrap_or(4);
- let body = format!(
- "search 0 0 0\nwrite 0 0 0\nbulk 0 0 0\nget 0 0 0\nanalyze 0 0 0\nmanagement 0 0 0\nflush 0 0 0\nrefresh 0 0 0\nwarmer 0 0 0\ngeneric {num_cpus} 0 0\n"
- );
+ // We don't track live per-pool counters, so report 0 active/queue/rejected
+ // (honest when idle) rather than fabricating an active count. The pool set
+ // mirrors what xerj actually schedules on the tokio runtime.
+ let body = "search 0 0 0\nwrite 0 0 0\nbulk 0 0 0\nget 0 0 0\nanalyze 0 0 0\nmanagement 0 0 0\nflush 0 0 0\nrefresh 0 0 0\nwarmer 0 0 0\ngeneric 0 0 0\n".to_string();
(
StatusCode::OK,
[(axum::http::header::CONTENT_TYPE, "text/plain; charset=utf-8")],
@@ -15015,11 +15160,19 @@ pub async fn cat_fielddata(State(state): State<AppState>) -> impl IntoResponse {
.into_response()
}
-pub async fn cat_pending_tasks() -> impl IntoResponse {
+pub async fn cat_pending_tasks(State(_state): State<AppState>) -> impl IntoResponse {
+ // Single-node: no master task queue, so there are never any pending tasks.
+ // Build the (empty) line set explicitly rather than hardcoding the result.
+ let lines: Vec<String> = Vec::new();
+ let body = if lines.is_empty() {
+ String::new()
+ } else {
+ lines.join("\n") + "\n"
+ };
(
StatusCode::OK,
[(axum::http::header::CONTENT_TYPE, "text/plain; charset=utf-8")],
- String::new(),
+ body,
)
.into_response()
}
@@ -15037,19 +15190,21 @@ pub async fn cat_plugins() -> impl IntoResponse {
pub async fn cat_nodeattrs() -> impl IntoResponse {
// node host ip attr value
- let body = "xerj-node-1 127.0.0.1 127.0.0.1 ml.machine_memory 8589934592\n\
- xerj-node-1 127.0.0.1 127.0.0.1 ml.max_open_jobs 20\n";
+ // xerj has no configured custom node attributes, so the honest answer is
+ // an empty body. (The previous ml.machine_memory / ml.max_open_jobs rows
+ // were fabricated — xerj has no ML subsystem.)
(
StatusCode::OK,
[(axum::http::header::CONTENT_TYPE, "text/plain; charset=utf-8")],
- body,
+ String::new(),
)
.into_response()
}
-pub async fn cat_master() -> impl IntoResponse {
+pub async fn cat_master(State(state): State<AppState>) -> impl IntoResponse {
// id host ip node
- let body = "xerj-node-1 127.0.0.1 127.0.0.1 xerj-node-1\n";
+ let id = state.engine.node_id.as_str();
+ let body = format!("{id} 127.0.0.1 127.0.0.1 {id}\n");
(
StatusCode::OK,
[(axum::http::header::CONTENT_TYPE, "text/plain; charset=utf-8")],
@@ -16182,47 +16337,58 @@ pub async fn put_license(
// ─────────────────────────────────────────────────────────────────────────────
pub async fn get_task_by_id(
- State(_state): State<AppState>,
+ State(state): State<AppState>,
Path(task_id): Path<String>,
) -> impl IntoResponse {
- // Return an empty completed task.
- Json(json!({
- "completed": true,
- "task": {
- "node": "xerj-node-1",
- "id": 0,
- "type": "transport",
- "action": "indices:data/write/bulk",
- "status": {},
- "description": task_id,
- "start_time_in_millis": Utc::now().timestamp_millis(),
- "running_time_in_nanos": 0,
- "cancellable": false,
- "headers": {}
- }
- }))
- .into_response()
+ match state.tasks.get(&task_id) {
+ Some(entry) => Json(json!({
+ "completed": false,
+ "task": task_to_json(&entry),
+ }))
+ .into_response(),
+ None => (
+ StatusCode::NOT_FOUND,
+ Json(json!({
+ "error": {
+ "type": "resource_not_found_exception",
+ "reason": format!(
+ "task [{task_id}] isn't running and hasn't stored its results"
+ ),
+ },
+ "status": 404
+ })),
+ )
+ .into_response(),
+ }
}
pub async fn cancel_task(
- State(_state): State<AppState>,
+ State(state): State<AppState>,
Path(task_id): Path<String>,
) -> impl IntoResponse {
- // No-op: acknowledge cancellation.
- Json(json!({
- "node_failures": [],
- "tasks": {
- task_id: {
- "node": "xerj-node-1",
- "id": 0,
- "type": "transport",
- "action": "indices:data/write/bulk",
- "cancellable": true,
- "headers": {}
+ // Flip the cooperative cancel flag (no-op if the task is unknown).
+ state.tasks.cancel(&task_id);
+ match state.tasks.get(&task_id) {
+ Some(entry) => Json(json!({
+ "node_failures": [],
+ "tasks": {
+ task_id: {
+ "node": entry.node.as_str(),
+ "id": entry.id,
+ "type": "transport",
+ "action": entry.action,
+ "cancellable": true,
+ "headers": {}
+ }
}
- }
- }))
- .into_response()
+ }))
+ .into_response(),
+ None => Json(json!({
+ "node_failures": [],
+ "tasks": {}
+ }))
+ .into_response(),
+ }
}
// ─────────────────────────────────────────────────────────────────────────────
@@ -19033,12 +19199,27 @@ pub async fn simulate_index_template(
// GET /_cat/repositories
// ─────────────────────────────────────────────────────────────────────────────
-pub async fn cat_tasks(State(_state): State<AppState>) -> impl IntoResponse {
+pub async fn cat_tasks(State(state): State<AppState>) -> impl IntoResponse {
+ // action task_id type running_time ip node — backed by the real
+ // in-flight TaskRegistry (consistent with GET /_tasks).
+ let mut lines: Vec<String> = Vec::new();
+ for t in state.tasks.list() {
+ lines.push(format!(
+ "{} {}:{} transport {}ms 127.0.0.1 {}",
+ t.action,
+ t.node,
+ t.id,
+ t.running_nanos() / 1_000_000,
+ t.node,
+ ));
+ }
+ let body = if lines.is_empty() { String::new() } else { lines.join("\n") + "\n" };
(
StatusCode::OK,
[(axum::http::header::CONTENT_TYPE, "text/plain; charset=utf-8")],
- "",
+ body,
)
+ .into_response()
}
pub async fn cat_repositories(State(state): State<AppState>) -> impl IntoResponse {
@@ -19061,3 +19242,126 @@ pub async fn cat_repositories(State(state): State<AppState>) -> impl IntoRespons
body,
)
}
+
+// ─────────────────────────────────────────────────────────────────────────────
+// Single-node parity helpers (real /proc metrics, on-disk sizes, task JSON)
+// ─────────────────────────────────────────────────────────────────────────────
+
+/// Read `(MemTotal, MemAvailable)` in BYTES from /proc/meminfo (Linux).
+/// Both fields are reported in kB by the kernel, so we multiply by 1024.
+fn read_meminfo() -> Option<(u64, u64)> {
+ let text = std::fs::read_to_string("/proc/meminfo").ok()?;
+ let mut total: Option<u64> = None;
+ let mut avail: Option<u64> = None;
+ for line in text.lines() {
+ if let Some(rest) = line.strip_prefix("MemTotal:") {
+ total = rest
+ .split_whitespace()
+ .next()
+ .and_then(|v| v.parse::<u64>().ok())
+ .map(|kb| kb * 1024);
+ } else if let Some(rest) = line.strip_prefix("MemAvailable:") {
+ avail = rest
+ .split_whitespace()
+ .next()
+ .and_then(|v| v.parse::<u64>().ok())
+ .map(|kb| kb * 1024);
+ }
+ if total.is_some() && avail.is_some() {
+ break;
+ }
+ }
+ Some((total?, avail?))
+}
+
+/// Read the 1m / 5m / 15m load averages from /proc/loadavg (Linux).
+/// Missing/unreadable values fall back to 0.0 so the column stays well-formed.
+fn read_loadavg() -> (f64, f64, f64) {
+ let text = std::fs::read_to_string("/proc/loadavg").unwrap_or_default();
+ let mut it = text.split_whitespace();
+ let parse = |o: Option<&str>| o.and_then(|s| s.parse::<f64>().ok()).unwrap_or(0.0);
+ let l1 = parse(it.next());
+ let l5 = parse(it.next());
+ let l15 = parse(it.next());
+ (l1, l5, l15)
+}
+
+/// Read aggregate `(busy, total)` CPU jiffies from the first line of /proc/stat.
+/// `busy` excludes idle + iowait; `total` is the sum of all fields. Two samples
+/// taken a short interval apart yield instantaneous host CPU utilisation.
+fn read_cpu_jiffies() -> Option<(u64, u64)> {
+ let text = std::fs::read_to_string("/proc/stat").ok()?;
+ let line = text.lines().next()?;
+ let mut it = line.split_whitespace();
+ if it.next()? != "cpu" {
+ return None;
+ }
+ let vals: Vec<u64> = it.filter_map(|v| v.parse::<u64>().ok()).collect();
+ if vals.len() < 4 {
+ return None;
+ }
+ // fields: user nice system idle iowait irq softirq steal ...
+ let idle = vals[3] + vals.get(4).copied().unwrap_or(0); // idle + iowait
+ let total: u64 = vals.iter().sum();
+ Some((total.saturating_sub(idle), total))
+}
+
+/// Sample host CPU utilisation over a short (~100ms) window from /proc/stat,
+/// returned as an integer percent in 0..=100. Async so the sleep yields the
+/// tokio worker instead of blocking it. Returns 0 when /proc/stat is unreadable.
+async fn sample_cpu_percent() -> u64 {
+ let Some((busy1, total1)) = read_cpu_jiffies() else {
+ return 0;
+ };
+ tokio::time::sleep(std::time::Duration::from_millis(100)).await;
+ let Some((busy2, total2)) = read_cpu_jiffies() else {
+ return 0;
+ };
+ let dt = total2.saturating_sub(total1);
+ if dt == 0 {
+ return 0;
+ }
+ let db = busy2.saturating_sub(busy1);
+ ((db as f64 / dt as f64) * 100.0).round().clamp(0.0, 100.0) as u64
+}
+
+/// Recursively sum the byte length of every regular file under `p`.
+/// Errors (unreadable dirs, races) are ignored and contribute 0, so this
+/// is safe to call on a live data_dir without locking.
+fn dir_size_bytes(p: &std::path::Path) -> u64 {
+ let mut total: u64 = 0;
+ let Ok(entries) = std::fs::read_dir(p) else {
+ return 0;
+ };
+ for entry in entries.flatten() {
+ match entry.file_type() {
+ Ok(ft) if ft.is_dir() => total += dir_size_bytes(&entry.path()),
+ Ok(ft) if ft.is_file() => {
+ if let Ok(md) = entry.metadata() {
+ total += md.len();
+ }
+ }
+ _ => {}
+ }
+ }
+ total
+}
+
+/// Serialize a registry [`TaskEntry`] into the ES task object shape. Field set
+/// and order match the previous hard-coded `get_task_by_id` response — only the
+/// values are now real.
+fn task_to_json(entry: &crate::state::TaskEntry) -> Value {
+ json!({
+ "node": entry.node.as_str(),
+ "id": entry.id,
+ "type": "transport",
+ "action": entry.action,
+ "status": {},
+ "description": entry.action,
+ "start_time_in_millis": entry.start_time_ms,
+ "running_time_in_nanos": entry.running_nanos(),
+ "cancellable": true,
+ "cancelled": entry.is_cancelled(),
+ "headers": {}
+ })
+}
diff --git a/engine/crates/xerj-api/src/state.rs b/engine/crates/xerj-api/src/state.rs
index 8733c102f..7e2678c87 100644
--- a/engine/crates/xerj-api/src/state.rs
+++ b/engine/crates/xerj-api/src/state.rs
@@ -6,8 +6,11 @@
//! global lock.
use std::sync::Arc;
+use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};
+use std::time::Instant;
use chrono::{DateTime, Utc};
+use dashmap::DashMap;
use tokio::sync::RwLock;
use xerj_common::{config::Config, metrics::Metrics, types::Schema};
use xerj_engine::Engine;
@@ -106,6 +109,103 @@ impl IndexHandle {
}
}
+// ─────────────────────────────────────────────────────────────────────────────
+// Tasks API — real in-flight long-running operation registry
+// ─────────────────────────────────────────────────────────────────────────────
+
+/// One in-flight long-running operation (reindex, delete/update_by_query, …).
+/// Cloned cheaply out of the registry for read-only ES responses; `cancelled`
+/// is shared (Arc) with the live [`TaskHandle`] so a `_cancel` is observable.
+#[derive(Clone)]
+pub struct TaskEntry {
+ pub id: u64,
+ pub action: String,
+ pub start_time_ms: i64,
+ pub start_instant: Instant,
+ pub node: Arc<String>,
+ pub cancelled: Arc<AtomicBool>,
+}
+
+impl TaskEntry {
+ pub fn is_cancelled(&self) -> bool {
+ self.cancelled.load(Ordering::Relaxed)
+ }
+ pub fn running_nanos(&self) -> u64 {
+ self.start_instant.elapsed().as_nanos() as u64
+ }
+ /// ES task key (`{node}:{id}`), used as the registry map key.
+ pub fn key(&self) -> String {
+ format!("{}:{}", self.node, self.id)
+ }
+}
+
+/// RAII handle returned by [`TaskRegistry::register`]. Dropping it (at the end
+/// of the long-running handler) removes the task from the registry, so the
+/// Tasks API only ever reflects genuinely in-flight operations.
+pub struct TaskHandle {
+ inner: Arc<DashMap<String, TaskEntry>>,
+ key: String,
+ pub cancelled: Arc<AtomicBool>,
+}
+
+impl TaskHandle {
+ pub fn is_cancelled(&self) -> bool {
+ self.cancelled.load(Ordering::Relaxed)
+ }
+}
+
+impl Drop for TaskHandle {
+ fn drop(&mut self) {
+ self.inner.remove(&self.key);
+ }
+}
+
+/// Registry of in-flight long-running tasks. Cheaply cloneable (`Arc` inside).
+#[derive(Clone)]
+pub struct TaskRegistry {
+ inner: Arc<DashMap<String, TaskEntry>>,
+ next_id: Arc<AtomicU64>,
+ node_id: Arc<String>,
+}
+
+impl TaskRegistry {
+ pub fn new(node_id: Arc<String>) -> Self {
+ Self {
+ inner: Arc::new(DashMap::new()),
+ next_id: Arc::new(AtomicU64::new(1)),
+ node_id,
+ }
+ }
+ /// Register a new in-flight task; the returned handle removes it on Drop.
+ pub fn register(&self, action: &str) -> TaskHandle {
+ let id = self.next_id.fetch_add(1, Ordering::Relaxed);
+ let cancelled = Arc::new(AtomicBool::new(false));
+ let entry = TaskEntry {
+ id,
+ action: action.to_string(),
+ start_time_ms: Utc::now().timestamp_millis(),
+ start_instant: Instant::now(),
+ node: self.node_id.clone(),
+ cancelled: cancelled.clone(),
+ };
+ let key = entry.key();
+ self.inner.insert(key.clone(), entry);
+ TaskHandle { inner: self.inner.clone(), key, cancelled }
+ }
+ pub fn cancel(&self, id: &str) -> bool {
+ match self.inner.get(id) {
+ Some(e) => { e.cancelled.store(true, Ordering::Relaxed); true }
+ None => false,
+ }
+ }
+ pub fn get(&self, id: &str) -> Option<TaskEntry> {
+ self.inner.get(id).map(|e| e.value().clone())
+ }
+ pub fn list(&self) -> Vec<TaskEntry> {
+ self.inner.iter().map(|e| e.value().clone()).collect()
+ }
+}
+
// ─────────────────────────────────────────────────────────────────────────────
// AppState
// ─────────────────────────────────────────────────────────────────────────────
@@ -120,15 +220,20 @@ pub struct AppState {
pub engine: Engine,
/// Prometheus metrics.
pub metrics: Arc<Metrics>,
+ /// In-memory registry of in-flight long-running tasks (reindex,
+ /// delete/update_by_query) backing the ES Tasks API.
+ pub tasks: TaskRegistry,
}
impl AppState {
/// Construct state from a config, engine, and metrics instance.
pub fn new(config: Config, engine: Engine, metrics: Metrics) -> Self {
+ let tasks = TaskRegistry::new(engine.node_id.clone());
Self {
config: Arc::new(config),
engine,
metrics: Arc::new(metrics),
+ tasks,
}
}