You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/sq/aggregations.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ An aggregation query allows you to perform the following actions:
4
4
- Group data based on field values.
5
5
- Apply aggregation functions on the grouped data.
6
6
7
-
This article explains the basic usage of the `FT.AGGREGATE` command. For further details, see the [command specification](https://redis.io/commands/ft.aggregate/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) and the [aggregations reference documentation](https://redis.io/docs/interact/search-and-query/advanced-concepts/aggregations?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials).
7
+
This article explains the basic usage of the `FT.AGGREGATE` command. For further details, see the [command specification](https://redis.io/commands/ft.aggregate/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) and the [aggregations reference documentation](https://redis.io/docs/latest/develop/ai/search-and-query/advanced-concepts/aggregations?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials).
8
8
9
9
The examples in this article use a schema with the following fields:
10
10
@@ -49,7 +49,7 @@ FT.AGGREGATE index "query_expr" LOAD n "field_1" .. "field_n" APPLY "function_ex
49
49
50
50
Here is a more detailed explanation of the query syntax:
51
51
52
-
1.**Query expression**: you can use the same query expressions as you would use with the `FT.SEARCH` command. You can substitute `query_expr` with any of the expressions explained in the articles of this [query topic](https://redis.io/docs/interact/search-and-query/query/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials). Vector search queries are an exception. You can't combine a vector search with an aggregation query.
52
+
1.**Query expression**: you can use the same query expressions as you would use with the `FT.SEARCH` command. You can substitute `query_expr` with any of the expressions explained in the articles of this [query topic](https://redis.io/docs/latest/develop/ai/search-and-query/query/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials). Vector search queries are an exception. You can't combine a vector search with an aggregation query.
53
53
2.**Loaded fields**: if field values weren't already loaded into the aggregation pipeline, you can force their presence via the `LOAD` clause. This clause takes the number of fields (`n`), followed by the field names (`"field_1" .. "field_n"`).
54
54
3.**Mapping function**: this mapping function operates on the field values. A specific field is referenced as `@field_name` within the function expression. The result is returned as `result_field`.
55
55
@@ -73,7 +73,7 @@ FT.AGGREGATE index "query_expr" ... GROUPBY n "field_1" .. "field_n" REDUCE AGG
73
73
Here is an explanation of the additional constructs:
74
74
75
75
1.**Grouping**: you can group by one or many fields. Each ordered sequence of field values then defines one group. It's also possible to group by values that resulted from a previous `APPLY ... AS`.
76
-
2.**Aggregation**: you must replace `AGG_FUNC` with one of the supported aggregation functions (e.g., `SUM` or `COUNT`). A complete list of functions is available in the [aggregations reference documentation](https://redis.io/docs/interact/search-and-query/advanced-concepts/aggregations?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials). Replace `aggregated_result_field` with a value of your choice.
76
+
2.**Aggregation**: you must replace `AGG_FUNC` with one of the supported aggregation functions (e.g., `SUM` or `COUNT`). A complete list of functions is available in the [aggregations reference documentation](https://redis.io/docs/latest/develop/ai/search-and-query/advanced-concepts/aggregations?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials). Replace `aggregated_result_field` with a value of your choice.
77
77
78
78
The following query shows you how to group by the field `condition` and apply a reduction based on the previously derived `price_category`. The expression `@price<1000` causes a bicycle to have the price category `1` if its price is lower than 1000 USD. Otherwise, it has the price category `0`. The output is the number of affordable bicycles grouped by price category.
Copy file name to clipboardExpand all lines: src/sq/combined.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ A combined query is a combination of several query types, such as:
9
9
You can use logical query operators to combine query expressions for numeric, tag, and text fields. For vector fields, you can combine a KNN query with a pre-filter.
10
10
11
11
**Note**:
12
-
The operators are interpreted slightly differently depending on the query dialect used. The default dialect is `DIALECT 1`; see [this article](https://redis.io/docs/interact/search-and-query/advanced-concepts/dialects/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) for information on the various dialects and how to change the dialect version. This article uses the second version of the query dialect, `DIALECT 2`, and uses additional brackets (`(...)`) to help clarify the examples.
12
+
The operators are interpreted slightly differently depending on the query dialect used. The default dialect is `DIALECT 1`; see [this article](https://redis.io/docs/latest/develop/ai/search-and-query/advanced-concepts/dialects/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) for information on the various dialects and how to change the dialect version. This article uses the second version of the query dialect, `DIALECT 2`, and uses additional brackets (`(...)`) to help clarify the examples.
13
13
14
14
The examples in this article use the following schema:
FT.SEARCH index "expr" FILTER numeric_field start end
135
135
```
136
136
137
-
Please see the [range query article](https://redis.io/docs/interact/search-and-query/query/range?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) to learn more about numeric range queries and such filters.
137
+
Please see the [range query article](https://redis.io/docs/latest/develop/ai/search-and-query/query/range?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) to learn more about numeric range queries and such filters.
Copy file name to clipboardExpand all lines: src/sq/full-text.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
A full-text search finds words or phrases within larger texts. You can search within a specific text field or across all text fields.
2
2
3
-
This article provides a good overview of the most relevant full-text search capabilities. Please find further details about all the full-text search features in the [reference documentation](https://redis.io/docs/interact/search-and-query/advanced-concepts/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials).
3
+
This article provides a good overview of the most relevant full-text search capabilities. Please find further details about all the full-text search features in the [reference documentation](https://redis.io/docs/latest/develop/ai/search-and-query/advanced-concepts/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials).
4
4
5
5
The examples in this article use a schema with the following fields:
6
6
@@ -50,7 +50,7 @@ Instead of searching across all text fields, you might want to limit the search
50
50
FT.SEARCH index "@field: word"
51
51
```
52
52
53
-
Words that occur very often in natural language, such as `the` or `a` for the English language, aren't indexed and will not return a search result. You can find further details in the [stop words article](https://redis.io/docs/interact/search-and-query/advanced-concepts/stopwords?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials).
53
+
Words that occur very often in natural language, such as `the` or `a` for the English language, aren't indexed and will not return a search result. You can find further details in the [stop words article](https://redis.io/docs/latest/develop/ai/search-and-query/advanced-concepts/stopwords?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials).
54
54
55
55
The following example searches for all bicycles that have the word 'kids' in the description:
A phrase is a sentence, sentence fragment, or small group of words. You can find further details about how to find exact phrases in the [exact match article](https://redis.io/docs/interact/search-and-query/query/exact-match?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials).
63
+
A phrase is a sentence, sentence fragment, or small group of words. You can find further details about how to find exact phrases in the [exact match article](https://redis.io/docs/latest/develop/ai/search-and-query/query/exact-match?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials).
You can learn more about non-numeric range queries, such as [geospatial](https://redis.io/docs/interact/search-and-query/query/geo-spatial?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) or [vector search](https://redis.io/docs/interact/search-and-query/query/vector-search?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) queries, in their dedicated articles.
91
+
You can learn more about non-numeric range queries, such as [geospatial](https://redis.io/docs/latest/develop/ai/search-and-query/query/geo-spatial/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) or [vector search](https://redis.io/docs/latest/develop/ai/search-and-query/query/vector-search/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) queries, in their dedicated articles.
Copy file name to clipboardExpand all lines: src/vss/vectors-basic.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ This vector index attribute is broken down as follows:
55
55
-`DIM 3` means that each vector is three dimensional.
56
56
- The `DISTANCE_METRIC` is defined as `COSINE`. Other possible values are `IP` and `L2`.
57
57
58
-
See the [vector reference](https://redis.io/docs/interact/search-and-query/advanced-concepts/vectors/) for more detailed information about each available option.
58
+
See the [vector reference](https://redis.io/docs/latest/develop/ai/search-and-query/vectors/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) for more detailed information about each available option.
0 commit comments