Skip to content

Commit 94400a6

Browse files
committed
Merge branch 'main' into DOC-6167
2 parents c69ea1e + 68ab71a commit 94400a6

File tree

103 files changed

+2058
-454
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+2058
-454
lines changed

content/commands/ft.create.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ arguments:
152152
- name: geo
153153
token: GEO
154154
type: pure-token
155+
- name: geoshape
156+
token: GEOSHAPE
157+
type: pure-token
155158
- name: vector
156159
token: VECTOR
157160
type: pure-token

content/develop/ai/search-and-query/indexing/_index.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,14 @@ This query returns the field as the alias `"stock"` instead of the JSONPath expr
591591

592592
You can [highlight]({{< relref "/develop/ai/search-and-query/advanced-concepts/highlight" >}}) relevant search terms in any indexed `TEXT` attribute.
593593

594-
For [`FT.SEARCH`]({{< relref "commands/ft.search/" >}}), you have to explicitly set which attributes you want highlighted after the `RETURN` and `HIGHLIGHT` parameters.
594+
For JSON documents, you must use the `RETURN` parameter to specify the attributes, followed by `HIGHLIGHT` to indicate which of those attributes to highlight.
595595

596596
Use the optional `TAGS` keyword to specify the strings that will surround (or highlight) the matching search terms.
597597

598+
{{< note >}}
599+
`HIGHLIGHT` and `SUMMARIZE` are not supported when the JSONPath leads to multiple values (such as arrays indexed as `TEXT`). See [Index limitations](#index-limitations) for details.
600+
{{< /note >}}
601+
598602
For example, highlight the word "bluetooth" with bold HTML tags in item names and descriptions:
599603

600604
```sql
@@ -674,10 +678,6 @@ FT.CREATE idx ON JSON PREFIX 1 key: SCHEMA $.propA AS propA TAG $.propB AS propB
674678

675679
## Index limitations
676680

677-
### HIGHLIGHT and SUMMARIZE
678-
679-
There is no `HIGHLIGHT` and `SUMMARIZE` support for JSON documents.
680-
681681
### Schema mapping
682682

683683
During index creation, you need to map the JSON elements to `SCHEMA` fields as follows:
@@ -697,6 +697,7 @@ During index creation, you need to map the JSON elements to `SCHEMA` fields as f
697697

698698
When a JSONPath leads to an array or to multiple values:
699699

700-
- **SORTBY**: Only the first value is considered by the sort.
701-
- **RETURN with attribute**: Returns only the first value (as a JSON String).
702-
- **RETURN with JSONPath**: Returns all values (as a JSON String).
700+
- No `HIGHLIGHT` and `SUMMARIZE` support.
701+
- `SORTBY` only sorts by the first value.
702+
- `RETURN` of a schema attribute returns the values as a JSON string.
703+
- If a JSONPath is specified by the `RETURN`, instead of a schema attribute, all values are returned (as a JSON string).

content/develop/clients/failover.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ your client library to learn how to configure it for failover and failback:
3232

3333
- [Jedis]({{< relref "/develop/clients/jedis/failover" >}})
3434
- [redis-py]({{< relref "/develop/clients/redis-py/failover" >}}) (preview)
35+
- [Lettuce]({{< relref "/develop/clients/lettuce/failover" >}}) (preview)
3536

3637
## Concepts
3738

0 commit comments

Comments
 (0)