Skip to content

Commit 178d444

Browse files
committed
chore: fix typo
1 parent ff2e9f1 commit 178d444

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/fundamentals/documentarray/matching.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ Though both `.find()` and `.match()` is about finding nearest neighbours of a gi
1717
- `.find()` always requires the query on the right-hand side. Say you have a DocumentArray with one million Documents, to find one query's nearest neightbours you should write `one_million_docs.find(query)`;
1818
- `.match()` assumes the query is on left-hand side. `A.match(B)` semantically means "A matches against B and save the results to A". So with `.match()` you should write `query.match(one_million_docs)`.
1919

20-
##### What is type of the query?
20+
##### What is the type of the query?
2121
- query (RHS) in `.find()` can be plain NdArray-like object or a single Document or a DocumentArray.
22-
- query (lHS) in `.match()` can be either a Document or a DocumentArray.
22+
- query (LHS) in `.match()` can be either a Document or a DocumentArray.
2323

2424
##### What is the return?
2525
- `.find()` returns a List of DocumentArray, each of which corresponds to one element/row in the query.
2626
- `.match()` do not return anything. Match results are stored inside right-hand side's `.matches`.
2727

28-
In the example below, we will use `.match()` to describe the feature. But keep in mind, `.find()` should always work by simply switching the right and left-hand sides.
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.
2929

3030
## Example
3131

0 commit comments

Comments
 (0)