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.

720 B
Raw Blame
setup:

  - do:
      indices.create:
        index: index1
        body:
          mappings:
            properties:
              foo:
                type: keyword

  - do:
      bulk:
        refresh: true
        body:
        - '{ "index" : { "_index" : "index1", "_id" : "1" } }'
        - '{ "foo": "bar"}'

---
"test negative size throws IAE":

  - do:
      catch: /\[size\] parameter cannot be negative, found \[-5\]/
      search:
        index: index1
        rest_total_hits_as_int: true
        size: -5

---
"test negative terminate_after throws IAE":

  - do:
      catch: /illegal_argument_exception/
      search:
        index: index1
        rest_total_hits_as_int: true
        terminate_after: -1