Skip to content

Commit 6653cb9

Browse files
committed
Use search_options when searching
1 parent a86ca8e commit 6653cb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Typesense/Query.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace StatamicRadPack\Typesense\Typesense;
44

55
use Illuminate\Pagination\Paginator;
6+
use Illuminate\Support\Arr;
67
use Statamic\Search\QueryBuilder;
78

89
class Query extends QueryBuilder
@@ -116,7 +117,7 @@ private function ordersToSortBy(array $orders): string
116117

117118
private function getApiResults()
118119
{
119-
$options = [];
120+
$options = Arr::get($this->index->config(), 'settings.schema.search_options');
120121

121122
if ($this->page && $this->perPage) {
122123
$options['page'] = $this->page;

0 commit comments

Comments
 (0)