Skip to content

Commit 0a0801a

Browse files
committed
TASK: Allow "filter" as valid clasuseTye for queryFilter
1 parent 3832fb2 commit 0a0801a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Driver/Version6/Query/FilteredQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function fulltext(string $searchWord, array $options = []): void
7171
*/
7272
public function queryFilter(string $filterType, $filterOptions, string $clauseType = 'must'): void
7373
{
74-
if (!in_array($clauseType, ['must', 'should', 'must_not'])) {
74+
if (!in_array($clauseType, ['must', 'should', 'must_not', 'filter'])) {
7575
throw new QueryBuildingException('The given clause type "' . $clauseType . '" is not supported. Must be one of "must", "should", "must_not".', 1383716082);
7676
}
7777

0 commit comments

Comments
 (0)