Php api error


I am using PHP elastic api (

I passed the filter param like below.

$searchParams = [
'page' => ['current' => $current, 'size' => 10] ,
'filters'=> [
'all' => [
"search_type" => ["company"],
"company_type" => ["Distributor","Music Publisher"]


I am getting error " error : Uncaught Elastic\OpenApi\Codegen\Exception\BadRequestException: Filters contains an invalid set of keys for object inside of field: all; can only have clauses or a single field name.

Could you please help.


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.