Skip to content

Commit aec2b93

Browse files
authored
let anything in search_options take precedence, developers beware (#5)
2 parents 828dc04 + 0ef8c49 commit aec2b93

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Typesense/Index.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ public function searchUsingApi($query, array $options = []): Collection
104104
}
105105

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

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

0 commit comments

Comments
 (0)