From d9bf1e048f17f9e54596cda167640f6f969d6cf7 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 12 Aug 2025 01:40:58 +1200 Subject: [PATCH] Fix missing throw on no FTS on not search --- src/Database/Validator/IndexedQueries.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Database/Validator/IndexedQueries.php b/src/Database/Validator/IndexedQueries.php index cb727c0fb..8e324b215 100644 --- a/src/Database/Validator/IndexedQueries.php +++ b/src/Database/Validator/IndexedQueries.php @@ -91,7 +91,10 @@ public function isValid($value): bool $filters = $grouped['filters']; foreach ($filters as $filter) { - if ($filter->getMethod() === Query::TYPE_SEARCH) { + if ( + $filter->getMethod() === Query::TYPE_SEARCH || + $filter->getMethod() === Query::TYPE_NOT_SEARCH + ) { $matched = false; foreach ($this->indexes as $index) {