Documentation

DropSearchIndex
in package

FinalYes

Operation for the dropSearchIndexes command.

Tags
see
Collection::dropSearchIndexes()
see
https://mongodb.com/docs/manual/reference/command/dropSearchIndexes/

Table of Contents

Constants

ERROR_CODE_NAMESPACE_NOT_FOUND  = 26

Properties

$collectionName  : string
$databaseName  : string
$name  : string
$options  : array<string|int, mixed>

Methods

__construct()  : mixed
Constructs a dropSearchIndex command.
execute()  : void
Execute the operation.

Constants

ERROR_CODE_NAMESPACE_NOT_FOUND

private mixed ERROR_CODE_NAMESPACE_NOT_FOUND = 26

Properties

Methods

__construct()

Constructs a dropSearchIndex command.

public __construct(string $databaseName, string $collectionName, string $name[, array{comment?: mixed} $options = [] ]) : mixed
Parameters
$databaseName : string

Database name

$collectionName : string

Collection name

$name : string

Index name

$options : array{comment?: mixed} = []

Command options

Tags
throws
InvalidArgumentException

for parameter parsing errors

execute()

Execute the operation.

public execute(Server $server) : void
Parameters
$server : Server
Tags
throws
UnsupportedException

if write concern is used and unsupported

throws
RuntimeException

for other driver errors (e.g. connection errors)


        
On this page

Search results