Skip to content

Commit

Permalink
let anything in search_options take precedence, developers beware (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell authored Oct 23, 2024
2 parents 828dc04 + 0ef8c49 commit aec2b93
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Typesense/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ public function searchUsingApi($query, array $options = []): Collection
}

foreach (Arr::get($this->config, 'settings.search_options', []) as $handle => $value) {
if (! isset($options[$handle])) {
$options[$handle] = $value;
}
$options[$handle] = $value;
}

$searchResults = $this->getOrCreateIndex()->documents->search($options);
Expand Down

0 comments on commit aec2b93

Please sign in to comment.