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
---
"Clear scroll":
  - do:
      indices.create:
          index:  test_scroll
  - do:
      index:
          index:  test_scroll
          id:     "42"
          body:   { foo: bar }

  - do:
      indices.refresh: {}

  - do:
      search:
        rest_total_hits_as_int: true
        index: test_scroll
        scroll: 1m
        body:
          query:
            match_all: {}

  - set: {_scroll_id: scroll_id1}

  - do:
      clear_scroll:
        scroll_id: $scroll_id1

  - do:
      catch: missing
      scroll:
        rest_total_hits_as_int: true
        scroll_id: $scroll_id1

  - do:
        catch: missing
        clear_scroll:
          scroll_id: $scroll_id1

---
"Body params with array param override query string":
  - do:
      indices.create:
          index:  test_scroll
  - do:
      index:
          index:  test_scroll
          id:     "42"
          body:   { foo: bar }

  - do:
      indices.refresh: {}

  - do:
      search:
        rest_total_hits_as_int: true
        index: test_scroll
        scroll: 1m
        body:
          query:
            match_all: {}

  - set: {_scroll_id: scroll_id1}

  - do:
      clear_scroll:
        scroll_id: "invalid_scroll_id"
        body: { "scroll_id": [ "$scroll_id1" ]}

  - do:
      catch: missing
      scroll:
        rest_total_hits_as_int: true
        scroll_id: $scroll_id1

  - do:
        catch: missing
        clear_scroll:
          scroll_id: $scroll_id1

---
"Body params with string param scroll id override query string":
  - do:
      indices.create:
          index:  test_scroll
  - do:
      index:
          index:  test_scroll
          id:     "42"
          body:   { foo: bar }

  - do:
      indices.refresh: {}

  - do:
      search:
        rest_total_hits_as_int: true
        index: test_scroll
        scroll: 1m
        body:
          query:
            match_all: {}

  - set: {_scroll_id: scroll_id1}

  - do:
      clear_scroll:
        scroll_id: "invalid_scroll_id"
        body: { "scroll_id": "$scroll_id1" }

  - do:
      catch: missing
      scroll:
        rest_total_hits_as_int: true
        scroll_id: $scroll_id1

  - do:
        catch: missing
        clear_scroll:
          scroll_id: $scroll_id1