バージョン 1.17 の新機能。
定義
- MongoDB\Collection::dropSearchIndex()
- コレクションのMongoDB Searchインデックスを削除します。 - function dropSearchIndex(string $name, array $options = []): void - このコマンドは、 MongoDB Atlasでホストされている配置でのみ実行でき、少なくとも M 10の Atlas クラスター階層が必要です。 Atlas のローカル配置は、開発にも使用できます。 
パラメーター
- $name: string
- 削除するインデックスの名前。
- $options: 配列
- 必要なオプションを指定する配列。 名前タイプ説明- comment - 混合 
エラーと例外
MongoDB\Exception\UnsupportedExceptionオプションが使用され、選択したサーバーでサポートされていない場合(例: collation 、 readConcern 、 writeConcern )。
MongoDB\Exception\InvalidArgumentException は、パラメータまたはオプションの解析に関連するエラーの場合は です。
MongoDB\Driver\Exception\RuntimeException は、拡張レベルのその他のエラー(例:)。