Hey, You can do the following: $orElements = array(); foreach (.....) { $orElements[] = $query->like(..); } $query->matching($query->logicalOr($orElements)); Greets, Sebastian