Skip to content

Commit eaa4e27

Browse files
authored
Merge pull request #660 from utopia-php/fix-catch-not-search
Fix missing throw on no FTS on not search
2 parents 61dd323 + d9bf1e0 commit eaa4e27

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Database/Validator/IndexedQueries.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ public function isValid($value): bool
9191
$filters = $grouped['filters'];
9292

9393
foreach ($filters as $filter) {
94-
if ($filter->getMethod() === Query::TYPE_SEARCH) {
94+
if (
95+
$filter->getMethod() === Query::TYPE_SEARCH ||
96+
$filter->getMethod() === Query::TYPE_NOT_SEARCH
97+
) {
9598
$matched = false;
9699

97100
foreach ($this->indexes as $index) {

0 commit comments

Comments
 (0)