Interface ListSearchIndexesPublisher<TResult>
- Type Parameters:
TResult
- The type of the result.
- All Superinterfaces:
Publisher<TResult>
A specific
Publisher
interface for listing Atlas Search indexes.- Since:
- 4.11
- Since server release
- 6.0
-
Method Summary
Modifier and TypeMethodDescriptionallowDiskUse
(Boolean allowDiskUse) Enables writing to temporary files.batchSize
(int batchSize) Sets the number of documents to return per batch.Sets the collation optionsSets the comment for this operation.Sets the comment for this operation.explain()
Explain the execution plan for this operation with the server's default verbosity levelexplain
(ExplainVerbosity verbosity) Explain the execution plan for this operation with the given verbosity level<E> Publisher<E>
Explain the execution plan for this operation with the server's default verbosity level<E> Publisher<E>
explain
(Class<E> explainResultClass, ExplainVerbosity verbosity) Explain the execution plan for this operation with the given verbosity levelfirst()
Helper to return a publisher limited to the first result.Sets the maximum execution time on the server for this operation.Sets the index name for this operation.timeoutMode
(TimeoutMode timeoutMode) Sets the timeoutMode for the cursor.
-
Method Details
-
name
Sets the index name for this operation.- Parameters:
indexName
- the index name.- Returns:
- this
-
allowDiskUse
Enables writing to temporary files. A null value indicates that it's unspecified.- Parameters:
allowDiskUse
- true if writing to temporary files is enabled- Returns:
- this
- MongoDB documentation
- Aggregation
-
batchSize
Sets the number of documents to return per batch.- Parameters:
batchSize
- the batch size- Returns:
- this
- MongoDB documentation
- Batch Size
-
maxTime
Sets the maximum execution time on the server for this operation.- Parameters:
maxTime
- the max timetimeUnit
- the time unit, which may not be null- Returns:
- this
- MongoDB documentation
- Max Time
-
collation
Sets the collation optionsA null value represents the server default.
- Parameters:
collation
- the collation options to use- Returns:
- this
-
comment
Sets the comment for this operation. A null value means no comment is set.- Parameters:
comment
- the comment- Returns:
- this
-
comment
Sets the comment for this operation. A null value means no comment is set.- Parameters:
comment
- the comment- Returns:
- this
-
timeoutMode
Sets the timeoutMode for the cursor.Requires the
timeout
to be set, either in theMongoClientSettings
, viaMongoDatabase
or viaMongoCollection
- Parameters:
timeoutMode
- the timeout mode- Returns:
- this
- Since:
- 5.2
-
first
Helper to return a publisher limited to the first result.- Returns:
- a Publisher which will contain a single item.
-
explain
Explain the execution plan for this operation with the server's default verbosity level- Returns:
- the execution plan
- MongoDB documentation
- reference/command/explain/
-
explain
Explain the execution plan for this operation with the given verbosity level- Parameters:
verbosity
- the verbosity of the explanation- Returns:
- the execution plan
- MongoDB documentation
- reference/command/explain/
-
explain
Explain the execution plan for this operation with the server's default verbosity level- Type Parameters:
E
- the type of the document class- Parameters:
explainResultClass
- the document class to decode into- Returns:
- the execution plan
- MongoDB documentation
- reference/command/explain/
-
explain
Explain the execution plan for this operation with the given verbosity level- Type Parameters:
E
- the type of the document class- Parameters:
explainResultClass
- the document class to decode intoverbosity
- the verbosity of the explanation- Returns:
- the execution plan
- MongoDB documentation
- reference/command/explain/
-