ES Client Runner

Build a filter, compile it to an Elasticsearch / OpenSearch search body, and run it with the real @rfjs/es-client over a mock transport that truly filters the sample data (search · paginate · highlight).

Fields
id
status
age
body
Filter logic
Search body
{
  "query": {
    "bool": {
      "must": []
    }
  },
  "size": 10
}
Scenario

Edit the filter — results update live.

es-client call
import { buildSearchBody } from "@rfjs/es-query";
import { search, fromElasticClient } from "@rfjs/es-client";

const body = buildSearchBody(tree, { size: 10 });
const { total, hits, sources } = await search(transport, { index: "demo", body });