From e05aea20f3b11dd8fefbc64c7c4fd7a0c85b679b Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Thu, 14 Nov 2024 09:50:00 +0000 Subject: [PATCH] Fix whereStatus error --- src/Typesense/Query.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Typesense/Query.php b/src/Typesense/Query.php index fa02a4e..7403ad4 100644 --- a/src/Typesense/Query.php +++ b/src/Typesense/Query.php @@ -19,6 +19,11 @@ public function getSearchResults($query) return $this; } + public function whereStatus($string) + { + return $this->where('status', $string); + } + private function getApiResults() { return $this->index->searchUsingApi($this->query ?? '', ['per_page' => $this->perPage, 'page' => $this->page]);