# Redis keys and Elasticsearch search in QuerentDB

> Browse Redis keys with SCAN, edit values and TTLs, run Redis commands; search Elasticsearch, filter hits, and run Kibana-style DSL requests in QuerentDB.

Source: https://www.keepware.dev/guides/querentdb-redis-elasticsearch · Product: QuerentDB (https://www.keepware.dev/querentdb) · Published 2026-11-11
Video: https://www.keepware.dev/guides/querentdb-redis-elasticsearch/video.mp4 (1:23, narrated, captions https://www.keepware.dev/guides/querentdb-redis-elasticsearch/video.vtt)

QuerentDB, a desktop database client by Keepware, opens Redis and Valkey as a key browser and Elasticsearch and OpenSearch as a search screen. For Redis, it lists keys with `SCAN` in batches (never `KEYS`), filters them by pattern and type, shows each value in a view for its type with a live TTL, and has a command line. For Elasticsearch, it searches an index or a pattern of indices with a search box and field filters, runs Kibana-style requests in a **DSL** console with the whole response (aggregations included), and shows each index's mapping, settings and aliases.

## How do I find Redis keys?

Open a Redis connection: the **Browse** view lists keys as it scans, with their **Type**, **Key**, **TTL** and **Size**. Type a **Pattern** such as `session:*`, pick a type (or **All types**), and choose **Find**; **Reset** goes back to `*`. The count line shows how many keys were found and scanned, and **Stop** / **Continue scan** control a long scan. Pick another database with the **db** switcher in the toolbar.

![Redis keys matching session:*, and one session hash with its live TTL](https://www.keepware.dev/guides/querentdb-redis-elasticsearch/redis-hash.png)

## How do I read and change a value?

Pick a key. Strings (shown as formatted JSON when they are JSON), hashes, lists, sets, sorted sets and streams each get a table of their own; the TTL chip counts down live.

- **Edit value** changes it, sending only what changed (an `HSET` for one field, a `ZADD` for one member, and so on); for streams, **Append entry** adds one.
- Click the TTL chip, or right-click a key and choose **Set expiry…**, to set a TTL (`7d`, `24h`, `30m` or seconds); leave it empty to remove the expiry.
- **New key** creates a key of any type, with a TTL; **Delete** removes one.
- **Bulk actions** sets a TTL on, or deletes, every key that matches the current pattern and type, up to 10,000 keys.

Every change shows the commands first and runs on the read-write account; values with more than 5,000 items are changed from the command line instead.

## How do I run Redis commands?

Switch to **CLI** and type commands, one per line, with `redis-cli` quoting; `#` starts a comment and commands autocomplete. Choose **Run** (Ctrl+Enter); each command's result shows as a table, JSON or raw. Commands that change data ask first. Commands that would take over the connection, such as `SUBSCRIBE`, `MONITOR` or `RESET`, aren't available.

![The Redis command line: the top five products from a sorted set](https://www.keepware.dev/guides/querentdb-redis-elasticsearch/redis-cli.png)

## How do I search Elasticsearch?

Open the connection and pick an index on the left, or **All indices (\*)** or a pattern from the **Indices** menu. Type in **Search**: words are combined with AND, quotes match a phrase, `-word` excludes a word and `prefix*` matches the start of a word. **+ Add filter** narrows the hits by a field's value and shows it as a chip.

![Add filter: a field and a value, with suggestions from the hits](https://www.keepware.dev/guides/querentdb-redis-elasticsearch/es-add-filter.png)

Hits show as a **Table** (click a header to sort, on the server) or as **Docs**. **New document**, **Edit** and **Delete** change single documents; **Update matching…** runs a Painless script on every hit (`_update_by_query`) and **Delete matching…** deletes them (`_delete_by_query`), each with an estimate first. **Export** saves the hits as CSV or JSON, up to 10,000.

## How do I use the DSL console?

**DSL** works like Kibana's Dev Tools: a method and a path, then the JSON body, on the same line or the next. Put several requests in one tab; `_bulk` and `_msearch` take NDJSON. **Format** lays the bodies out, **Explain** shows how a `_search` is executed, and **Run** (Ctrl+Enter) sends them.

Reads run right away. Anything that writes (an index change, a bulk load, an update or delete by query) asks first, with an estimate of the documents it affects. The result shows the hits as a table and the whole response under **Response**: a search with `"size": 0` and aggregations opens on it.

![A terms aggregation with an average per bucket, in Response](https://www.keepware.dev/guides/querentdb-redis-elasticsearch/es-dsl.png)

## What do Mapping, Settings and Aliases show?

**Mapping** lists every field with its type (and `dense_vector` dimensions on Elasticsearch 8), **Settings** lists the index settings, and **Aliases** shows which aliases point to the index. They're read-only; change them with a request in **DSL**.

![The mapping of the products index](https://www.keepware.dev/guides/querentdb-redis-elasticsearch/es-mapping.png)

## FAQ

### Does QuerentDB support Redis Cluster?

Not yet: Redis Cluster and Redis Sentinel aren't supported. Standalone Redis 5 to 7 and Valkey 8 are, with or without TLS.

### Does QuerentDB support OpenSearch?

Yes, OpenSearch 2, with the same search, DSL and index views as Elasticsearch 6.8 to 8.

### Is there a JSON viewer for RedisJSON keys?

Not yet. Strings that hold JSON are formatted. For RedisJSON keys, use `JSON.GET` in **CLI**; QuerentDB doesn't know module commands, so it treats them as writes and asks before running them.

## Video transcript

**0:03 Find Redis keys.** Open a Redis connection, and QuerentDB lists its keys with SCAN, in batches. It never runs KEYS, so a big database stays responsive. Type a pattern, like session star, and choose Find. Pick a key to see its value. This session is a hash, and its time to live counts down as you watch.

**0:22 The Redis command line.** Each type has its own view and editor: strings, hashes, lists, sets, sorted sets and streams. For anything else, switch to CLI and type commands, one per line. This one reads the five best-selling products from a sorted set.

**0:38 Search Elasticsearch.** Elasticsearch opens on its indices. Pick products and search it like a search engine. Words are combined with AND; quotes match a phrase, and a minus sign excludes a word. Add filter narrows the hits by a field, like a tag, and shows it as a chip.

**0:54 The DSL console.** DSL is a console like Kibana's Dev Tools: a method, a path, and a JSON body. This request groups the products by tag, with their average price. The aggregations show up in the response. Reads run right away. Writes, like a bulk update or a delete by query, ask first, with an estimate.

**1:13 Mapping, settings and aliases.** Mapping lists every field with its type, and Settings and Aliases show the rest of the index.

