Skip to content

Commit

Permalink
PHPLIB-1305 Support "codec" option in listSearchIndexes()
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Nov 8, 2023
1 parent 22e99b8 commit cd97d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Operation/ListSearchIndexes.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function __construct(string $databaseName, string $collectionName, array
$this->databaseName = $databaseName;
$this->collectionName = $collectionName;
$this->listSearchIndexesOptions = array_intersect_key($options, ['name' => 1]);
$this->aggregateOptions = array_intersect_key($options, ['batchSize' => 1, 'collation' => 1, 'comment' => 1, 'maxTimeMS' => 1, 'readConcern' => 1, 'readPreference' => 1, 'session' => 1, 'typeMap' => 1]);
$this->aggregateOptions = array_intersect_key($options, ['batchSize' => 1, 'codec' => 1, 'collation' => 1, 'comment' => 1, 'maxTimeMS' => 1, 'readConcern' => 1, 'readPreference' => 1, 'session' => 1, 'typeMap' => 1]);

$this->aggregate = $this->createAggregate();
}
Expand Down

0 comments on commit cd97d5f

Please sign in to comment.