Skip to content

Commit 10b0dc9

Browse files
authored
DOCSP-30493 indexOfArray Quick Win (#3441)
* DOCSP-30493 indexOfArray Quick Win * remove from high-level entries * consistency * JP feedback
1 parent d90ed3f commit 10b0dc9

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

source/includes/extracts-agg-operators.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ content: |
190190
* - :expression:`$indexOfArray`
191191
192192
- Searches an array for an occurrence of a specified value and
193-
returns the array index of the first occurrence. If the
194-
substring is not found, returns ``-1``.
193+
returns the array index of the first occurrence. Array indexes start
194+
at zero.
195195
196196
* - :expression:`$isArray`
197197

source/reference/operator/aggregation.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,7 @@ Alphabetical Listing of Expression Operators
613613
* - :expression:`$indexOfArray`
614614

615615
- Searches an array for an occurrence of a specified value and returns
616-
the array index of the first occurrence. If the substring is not found,
617-
returns ``-1``.
616+
the array index of the first occurrence. Array indexes start at zero.
618617

619618

620619
* - :expression:`$indexOfBytes`

source/reference/operator/aggregation/indexOfArray.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ Definition
1616
.. expression:: $indexOfArray
1717

1818
Searches an array for an occurrence of a specified value and returns
19-
the array index (zero-based) of the first occurrence. If the
20-
value is not found, returns ``-1``.
19+
the array index of the first occurrence. Array indexes start at zero.
2120

2221
:expression:`$indexOfArray` has the following :ref:`operator
2322
expression syntax <agg-quick-ref-operator-expressions>`:

0 commit comments

Comments
 (0)