Skip to content

Commit eaa82c1

Browse files
committed
Added overridable resolveSearchParams().
1 parent 4c9027b commit eaa82c1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Mods/Collection/Filter/BaseFilter.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,19 @@ public function getRawResults() : array
104104
$results = $this
105105
->getSearchIndex()
106106
->getSearchInstance()
107-
->search($this->applyFilters())
107+
->search($this->resolveSearchParams())
108108
->toArray();
109109

110110
$this->results = $results['hits'];
111111

112112
return $this->results;
113113
}
114114

115+
protected function resolveSearchParams() : SearchParameters
116+
{
117+
return $this->applyFilters();
118+
}
119+
115120
abstract public function getSearchIndex() : IndexInterface;
116121

117122
private function applyFilters() : SearchParameters

0 commit comments

Comments
 (0)