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.

2.2 KB
Raw Blame
setup:
  - skip:
      features: ["allowed_warnings"]

  - do:
      indices.create:
        index: index-1
        body:
          settings:
            number_of_shards:   1
            number_of_replicas: 0

  - do:
      indices.create:
        index: index-2
        body:
          settings:
            number_of_shards:   2
            number_of_replicas: 0

  - do:
      cluster.health:
        wait_for_status: green

  - do:
      indices.close:
        index: index-2

  - do:
      cluster.health:
        wait_for_status: green

---
"cluster health with expand_wildcards":
  - requires:
      cluster_features: ["gte_v7.2.0"]
      reason:  "indices options has been introduced in cluster health request starting version 7.2.0"

  - do:
      cluster.health:
        index: "index-*"
        level: indices
        expand_wildcards: open
  - match:     { status:                          green }
  - match:     { active_shards:                   1     }
  - match:     { indices.index-1.status:          green }
  - match:     { indices.index-1.active_shards:   1     }
  - is_false:  indices.index-2

  - do:
      cluster.health:
        index: "index-*"
        level: indices
        expand_wildcards: closed
  - match:     { status:                          green }
  - match:     { active_shards:                   2     }
  - is_false:  indices.index-1
  - match:     { indices.index-2.status:          green }
  - match:     { indices.index-2.active_shards:   2     }

  - do:
      cluster.health:
        index: "index-*"
        level: indices
        expand_wildcards: all
  - match:     { status:                          green }
  - match:     { active_shards:                   3     }
  - match:     { indices.index-1.status:          green }
  - match:     { indices.index-1.active_shards:   1     }
  - match:     { indices.index-2.status:          green }
  - match:     { indices.index-2.active_shards:   2     }

  - do:
      cluster.health:
        index: "index-*"
        level: indices
        expand_wildcards: none
  - match:     { status:                          green }
  - match:     { active_shards:                   0     }
  - is_false:  indices.index-1
  - is_false:  indices.index-2