Skip to content

Commit 53ccbc4

Browse files
authored
PHPLIB-1143: Document Atlas Search index helpers and fix aggregate "collation" docs (#1189)
* PHPLIB-1143: Docs for Atlas Search index helpers * PHPLIB-1306: Add missing docs for aggregate "collation" option
1 parent a01f3cf commit 53ccbc4

20 files changed

+525
-1
lines changed

docs/includes/apiargs-MongoDBCollection-method-aggregate-option.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ source:
1010
file: apiargs-aggregate-option.yaml
1111
ref: bypassDocumentValidation
1212
---
13+
source:
14+
file: apiargs-MongoDBCollection-common-option.yaml
15+
ref: collation
16+
---
1317
source:
1418
file: apiargs-common-option.yaml
1519
ref: comment
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
arg_name: option
2+
name: name
3+
type: string
4+
description: |
5+
Name of the search index to create.
6+
7+
You cannot create multiple indexes with the same name on a single collection.
8+
9+
If you do not specify a name, the index is named "default".
10+
interface: phpmethod
11+
operation: ~
12+
optional: true
13+
---
14+
source:
15+
file: apiargs-common-option.yaml
16+
ref: comment
17+
...
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
arg_name: param
2+
name: $definition
3+
type: array|object
4+
description: |
5+
Document describing the index to create. For details on definition syntax, see
6+
:manual:`Search Index Definition Syntax </reference/command/createSearchIndexes/#search-index-definition-syntax>`.
7+
interface: phpmethod
8+
operation: ~
9+
optional: false
10+
---
11+
source:
12+
file: apiargs-common-param.yaml
13+
ref: $options
14+
...
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source:
2+
file: apiargs-common-option.yaml
3+
ref: comment
4+
...
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
arg_name: param
2+
name: $indexes
3+
type: array
4+
description: |
5+
Array of documents describing the indexes to create.
6+
7+
A required ``definition`` document field describes the index to create. For
8+
details on definition syntax, see
9+
:manual:`Search Index Definition Syntax </reference/command/createSearchIndexes/#search-index-definition-syntax>`.
10+
11+
An optional ``name`` string field specifies the name of the search index to
12+
create. You cannot create multiple indexes with the same name on a single
13+
collection. If you do not specify a name, the index is named "default".
14+
interface: phpmethod
15+
operation: ~
16+
optional: false
17+
---
18+
source:
19+
file: apiargs-common-param.yaml
20+
ref: $options
21+
...
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source:
2+
file: apiargs-common-option.yaml
3+
ref: comment
4+
...
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
arg_name: param
2+
name: $name
3+
type: string
4+
description: |
5+
Name of the index to drop.
6+
interface: phpmethod
7+
operation: ~
8+
optional: false
9+
---
10+
source:
11+
file: apiargs-common-param.yaml
12+
ref: $options
13+
...
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
source:
2+
file: apiargs-aggregate-option.yaml
3+
ref: batchSize
4+
---
5+
source:
6+
file: apiargs-common-option.yaml
7+
ref: collation
8+
---
9+
source:
10+
file: apiargs-common-option.yaml
11+
ref: comment
12+
---
13+
arg_name: option
14+
name: name
15+
type: string
16+
description: |
17+
Name of the index to return information about.
18+
19+
If name is not specified, information for all indexes on the collection will
20+
be returned.
21+
interface: phpmethod
22+
operation: ~
23+
optional: true
24+
---
25+
source:
26+
file: apiargs-common-option.yaml
27+
ref: maxTimeMS
28+
---
29+
source:
30+
file: apiargs-MongoDBCollection-common-option.yaml
31+
ref: readConcern
32+
---
33+
source:
34+
file: apiargs-MongoDBCollection-common-option.yaml
35+
ref: readPreference
36+
---
37+
source:
38+
file: apiargs-common-option.yaml
39+
ref: session
40+
---
41+
source:
42+
file: apiargs-MongoDBCollection-common-option.yaml
43+
ref: typeMap
44+
...
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source:
2+
file: apiargs-common-param.yaml
3+
ref: $options
4+
...
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source:
2+
file: apiargs-common-option.yaml
3+
ref: comment
4+
...

0 commit comments

Comments
 (0)