This repository was archived by the owner on Sep 9, 2026. It is now read-only.
File tree
Expand file treeCollapse file tree
Open diff view settings
docs/fundamentals/documentarray
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: docs/fundamentals/documentarray/access-elements.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 |
|---|
@@ -135,7 +135,7 @@ da['@path1,path2,path3'] |
135 | 135 |
|
136 | 136 | - The path-string must starts with `@`. |
137 | 137 | - Multiple paths are separated by comma `,`. |
138 | | -- A path represents the route from the top-level Documents to the destination. You can use `c` to select chunks, `cc` to select chunks of the chunks, `m` to select matches, `mc` to select matches of the chunks, `r` to select the top-level Documents. |
| 138 | +- A path represents the route from the top-level Documents to the destination. You can use `c` to select chunks, `cc` to select chunks of the chunks, `m` to select matches, `mc` to select chunks of the matches, `r` to select the top-level Documents. |
139 | 139 | - A path can only go deep, not go back. You can use comma `,` to start a new path from the very top-level. |
140 | 140 | - Optionally, you can specify a slice or offset at each level, for example, `r[-1]m[:3]` will select the first 3 matches of the last root document. |
141 | 141 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: docs/fundamentals/documentarray/matching.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 |
|---|
@@ -23,7 +23,7 @@ Though both `.find()` and `.match()` is about finding nearest neighbours of a gi |
23 | 23 |
|
24 | 24 | ##### What is the return? |
25 | 25 | - `.find()` returns a List of DocumentArray, each of which corresponds to one element/row in the query. |
26 | | - - `.match()` do not return anything. Match results are stored inside right-hand side's `.matches`. |
| 26 | + - `.match()` do not return anything. Match results are stored inside left-hand side's `.matches`. |
27 | 27 |
|
28 | 28 | In the sequel, we will use `.match()` to describe the features. But keep in mind that `.find()` should also work by simply switching the right and left-hand sides. |
29 | 29 |
|
|