From 7c4d3ca938f21a22b3f6056dd2af5ed0e17d95d6 Mon Sep 17 00:00:00 2001 From: ViktarStarastsenka <99594890+ViktarStarastsenka@users.noreply.github.com> Date: Wed, 28 Feb 2024 18:31:27 +0100 Subject: [PATCH 1/5] Update geospatial.md --- src/sq/geospatial.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/sq/geospatial.md b/src/sq/geospatial.md index 4e52288..5f63394 100644 --- a/src/sq/geospatial.md +++ b/src/sq/geospatial.md @@ -1,10 +1,3 @@ ---- -title: "Geospatial queries" -linkTitle: "Geospatial" -description: Query based on geographic data -weight: 4 ---- - Redis Stack's geospatial feature allows you to query for data associated with geographic locations. You can either query for locations within a specific radius or based on geometric shapes, such as polygons. A polygon shape could, for instance, represent a lake or the layout of a building. The examples in this article use the following schema: From af7254b32aa9d6c10b262f6ed9aa1a46d413886e Mon Sep 17 00:00:00 2001 From: ViktarStarastsenka <99594890+ViktarStarastsenka@users.noreply.github.com> Date: Wed, 28 Feb 2024 18:34:21 +0100 Subject: [PATCH 2/5] Update create.md --- src/ds/json/create.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ds/json/create.md b/src/ds/json/create.md index 604b1c4..be68b82 100644 --- a/src/ds/json/create.md +++ b/src/ds/json/create.md @@ -1,5 +1,3 @@ -## Create JSON documents - Here's a query that creates a JSON document describing a single bike. ```redis:[run_confirmation=true] Create a JSON document From 9bb4c0351df89f16ea74391f5043fb3322e53136 Mon Sep 17 00:00:00 2001 From: ViktarStarastsenka <99594890+ViktarStarastsenka@users.noreply.github.com> Date: Wed, 28 Feb 2024 18:35:59 +0100 Subject: [PATCH 3/5] Update single-key.md --- src/ds/ts/single-key.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ds/ts/single-key.md b/src/ds/ts/single-key.md index faae0db..955aa1c 100644 --- a/src/ds/ts/single-key.md +++ b/src/ds/ts/single-key.md @@ -1,5 +1,3 @@ -## Single-key aggregations - The previous tutorial showed that the `TS.RANGE` and `TS.REVRANGE` commands can take an optional `AGGREGATION` argument. Aggregations using the `RANGE` commands allow you to make ad hoc queries using, perhaps, a different aggregator than what you've used in your aggregation rules. In the following example, data are aggregated the `avg` function, calculating and reporting average daily sales for a bike shop. ```redis AGGREGATION in action From 23918a7338dcd982abbdbb4d8dc1b8027b559580 Mon Sep 17 00:00:00 2001 From: ViktarStarastsenka <99594890+ViktarStarastsenka@users.noreply.github.com> Date: Wed, 28 Feb 2024 18:36:46 +0100 Subject: [PATCH 4/5] Update retrieve.md --- src/ds/ts/retrieve.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ds/ts/retrieve.md b/src/ds/ts/retrieve.md index f5e735d..7d96dd8 100644 --- a/src/ds/ts/retrieve.md +++ b/src/ds/ts/retrieve.md @@ -1,5 +1,3 @@ -## Basic data retrieval commands - ### The `TS.GET` command `TS.GET` is used to get the sample with the highest timestamp from a given time series. It reports both the timestamp and the value. @@ -124,4 +122,4 @@ The `GROUPBY` syntax is: `GROUPBY label REDUCE reducer`. The available reducer f ```redis TS.MRANGE with GROUPBY/REDUCE TS.MRANGE - + WITHLABELS COUNT 5 FILTER region=(east) GROUPBY region REDUCE sum -``` \ No newline at end of file +``` From ede14ef0a172af0d8d14cb5db0a3563734f97675 Mon Sep 17 00:00:00 2001 From: ViktarStarastsenka <99594890+ViktarStarastsenka@users.noreply.github.com> Date: Wed, 28 Feb 2024 18:37:27 +0100 Subject: [PATCH 5/5] Update cross-key.md --- src/ds/ts/cross-key.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ds/ts/cross-key.md b/src/ds/ts/cross-key.md index c056f8d..8289fd7 100644 --- a/src/ds/ts/cross-key.md +++ b/src/ds/ts/cross-key.md @@ -1,7 +1,5 @@ -## Cross-key aggregations - `TS.MRANGE` and `TS.REVMRANGE` can also take an optional `AGGREGATION` argument. This allows you to run queries across different keys using different filters. In the following example, the specified filter looks across time series keys that have a matching `region` label, calculates the daily average using the `AGGREGATION` clause, and groups the data by region and applying the `sum` reducer function. ``` TS.MRANGE - + WITHLABELS FILTER region=(east,west) AGGREGATION avg 86400000 GROUPBY region REDUCE sum -``` \ No newline at end of file +```