Tablux

Tablux › Videos › OpenSearch

Video

OpenSearch in Tablux: SQL, then an AI date histogram

OpenSearch in Tablux: a query and an AI question

A 25-second clip of Tablux on a Mac connected to OpenSearch over HTTPS: Insights first, then OpenSearch SQL for orders and revenue by channel, then Tablux AI answers “How many orders per day over the last two weeks?” with a console request and a date histogram.

The query typed in the video

Orders and revenue per sales channel, through the OpenSearch SQL plugin.

SELECT channel, COUNT(*) AS orders,
       ROUND(SUM(total), 2) AS revenue
FROM orders
GROUP BY channel
ORDER BY revenue DESC

The question for Tablux AI

The question, in everyday words: “How many orders per day over the last two weeks?”

The reply: A date histogram over the last 14 days:

GET /orders/_search
{
  "size": 0,
  "query": { "range": { "ordered_at": { "gte": "now-14d/d" } } },
  "aggs": { "per_day": { "date_histogram": { "field": "ordered_at", "calendar_interval": "day" } } }
}

“Use in editor” puts the query in the editor; Run runs it. Nothing runs by itself.

What came back

Tablux turns the aggregation buckets into rows: one per day with its order count. The AI chose a console request here because SQL is clumsy for date buckets; it uses whichever language fits the question.

How this was recorded

Everything in the clip is the real app on a Mac, connected to a real OpenSearch 2.19 cluster holding the Trailhead Outfitters demo shop (two years of orders, products, customers and refunds). The typed query and the AI’s query both ran against that data; the result grids are what came back. The one thing staged is the AI’s reply: the recording can’t call Tablux AI live, so it shows a fixed answer of the kind Tablux AI gives, written for this schema.

Try it

Tablux is free on the App Store for iPhone, iPad and Mac, with two connections of your own and 5 AI questions a month. Tablux Pro ($9.99 a month, or $79.99 a year with a 7-day free trial) adds unlimited connections, SSH tunnels and 200 AI questions a month. The assistant sees your schema (table and field names, types, keys), never your rows, and its query only runs when you tap Run.

Questions

Does Tablux work with Amazon OpenSearch Service?

Yes: choose AWS sign-in and Tablux signs each request with your access key (and session token for temporary credentials). The recording used a local OpenSearch 2.19 cluster with a password.

Try Tablux

Connect Tablux to your own OpenSearch and ask it something.

Coming soon to the App StoreSee pricing